diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2013-05-18 20:27:06 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2013-05-18 20:27:06 +0000 |
| commit | 40746dfe8f2a1036da2726d9ee36578837559528 (patch) | |
| tree | 4e433de97fb65ffadae2dee3d00e8423bff3ab5c /clang/test | |
| parent | d68416562065e2ee97bcd8e3a7528bc905ee786e (diff) | |
| download | bcm5719-llvm-40746dfe8f2a1036da2726d9ee36578837559528.tar.gz bcm5719-llvm-40746dfe8f2a1036da2726d9ee36578837559528.zip | |
Slight reorganization of the fast-math tests which test for errno
setting. Consolidate the collection of tests that enable -fmath-errno
and share a single CHECK line for simplicity.
llvm-svn: 182202
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/fast-math.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/clang/test/Driver/fast-math.c b/clang/test/Driver/fast-math.c index 91af2e1dce4..b69750ae5b6 100644 --- a/clang/test/Driver/fast-math.c +++ b/clang/test/Driver/fast-math.c @@ -39,19 +39,15 @@ // // RUN: %clang -### -fmath-errno -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-MATH-ERRNO %s +// RUN: %clang -### -target x86_64-unknown-linux -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-MATH-ERRNO %s +// RUN: %clang -### -fmath-errno -fno-fast-math -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-MATH-ERRNO %s +// RUN: %clang -### -fno-fast-math -fmath-errno -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-MATH-ERRNO %s // CHECK-MATH-ERRNO: "-cc1" // CHECK-MATH-ERRNO: "-fmath-errno" // -// RUN: %clang -### -fno-fast-math -fmath-errno -c %s 2>&1 \ -// RUN: | FileCheck --check-prefix=CHECK-NO-FAST-MATH-MATH-ERRNO %s -// CHECK-NO-FAST-MATH-MATH-ERRNO: "-cc1" -// CHECK-NO-FAST-MATH-MATH-ERRNO: "-fmath-errno" -// -// RUN: %clang -### -fmath-errno -fno-fast-math -c %s 2>&1 \ -// RUN: | FileCheck --check-prefix=CHECK-MATH-ERRNO-NO-FAST-MATH %s -// CHECK-MATH-ERRNO-NO-FAST-MATH: "-cc1" -// CHECK-MATH-ERRNO-NO-FAST-MATH-NOT: "-fmath-errno" -// // RUN: %clang -### -fmath-errno -fno-math-errno -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s // RUN: %clang -### -target i686-apple-darwin -c %s 2>&1 \ |

