2013-04-25 02:09:54 +08:00
|
|
|
// RUN: %clang -Ofast -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST %s
|
2013-04-25 02:43:57 +08:00
|
|
|
// RUN: %clang -O2 -Ofast -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST %s
|
2013-04-25 02:09:54 +08:00
|
|
|
// RUN: %clang -fno-fast-math -Ofast -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST %s
|
|
|
|
// RUN: %clang -fno-strict-aliasing -Ofast -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST %s
|
2013-04-25 02:29:59 +08:00
|
|
|
// RUN: %clang -fno-vectorize -Ofast -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST %s
|
2013-04-25 02:43:57 +08:00
|
|
|
// RUN: %clang -Ofast -O2 -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-O2 %s
|
2013-04-25 02:09:54 +08:00
|
|
|
// RUN: %clang -Ofast -fno-fast-math -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-FAST-MATH %s
|
|
|
|
// RUN: %clang -Ofast -fno-strict-aliasing -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-STRICT-ALIASING %s
|
2013-04-25 02:29:59 +08:00
|
|
|
// RUN: %clang -Ofast -fno-vectorize -### %s 2>&1 | FileCheck -check-prefix=CHECK-OFAST-NO-VECTORIZE %s
|
2013-04-25 02:09:54 +08:00
|
|
|
|
|
|
|
// CHECK-OFAST: -cc1
|
|
|
|
// CHECK-OFAST-NOT: -relaxed-aliasing
|
|
|
|
// CHECK-OFAST: -ffast-math
|
|
|
|
// CHECK-OFAST: -Ofast
|
2013-04-25 02:29:59 +08:00
|
|
|
// CHECK-OFAST: -vectorize-loops
|
2013-04-25 02:09:54 +08:00
|
|
|
|
2013-04-25 02:43:57 +08:00
|
|
|
// CHECK-OFAST-O2: -cc1
|
|
|
|
// CHECK-OFAST-O2-NOT: -relaxed-aliasing
|
|
|
|
// CHECK-OFAST-O2-NOT: -ffast-math
|
|
|
|
// CHECK-OFAST-O2-NOT: -Ofast
|
|
|
|
// CHECK-OFAST-O2: -vectorize-loops
|
|
|
|
|
2013-04-25 02:09:54 +08:00
|
|
|
// CHECK-OFAST-NO-FAST-MATH: -cc1
|
|
|
|
// CHECK-OFAST-NO-FAST-MATH-NOT: -relaxed-aliasing
|
|
|
|
// CHECK-OFAST-NO-FAST-MATH-NOT: -ffast-math
|
|
|
|
// CHECK-OFAST-NO-FAST-MATH: -Ofast
|
2013-04-25 02:29:59 +08:00
|
|
|
// CHECK-OFAST-NO-FAST-MATH: -vectorize-loops
|
2013-04-25 02:09:54 +08:00
|
|
|
|
|
|
|
// CHECK-OFAST-NO-STRICT-ALIASING: -cc1
|
|
|
|
// CHECK-OFAST-NO-STRICT-ALIASING: -relaxed-aliasing
|
|
|
|
// CHECK-OFAST-NO-STRICT-ALIASING: -ffast-math
|
|
|
|
// CHECK-OFAST-NO-STRICT-ALIASING: -Ofast
|
2013-04-25 02:29:59 +08:00
|
|
|
// CHECK-OFAST-NO-STRICT-ALIASING: -vectorize-loops
|
|
|
|
|
|
|
|
// CHECK-OFAST-NO-VECTORIZE: -cc1
|
|
|
|
// CHECK-OFAST-NO-VECTORIZE-NOT: -relaxed-aliasing
|
|
|
|
// CHECK-OFAST-NO-VECTORIZE: -ffast-math
|
|
|
|
// CHECK-OFAST-NO-VECTORIZE: -Ofast
|
|
|
|
// CHECK-OFAST-NO-VECTORIZE-NOT: -vectorize-loops
|