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 | edc313343dc64c3113f01ea7cf902465e7c1da55 (patch) | |
tree | 715a4a902c0c1f082ca539336f353db3aa1fb127 /test/Driver/fast-math.c | |
parent | fa047c580506041d1120023b10c6a3528c8016c6 (diff) | |
download | clang-edc313343dc64c3113f01ea7cf902465e7c1da55.tar.gz clang-edc313343dc64c3113f01ea7cf902465e7c1da55.tar.bz2 clang-edc313343dc64c3113f01ea7cf902465e7c1da55.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/fast-math.c')
-rw-r--r-- | test/Driver/fast-math.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/Driver/fast-math.c b/test/Driver/fast-math.c index 91af2e1dce..b69750ae5b 100644 --- a/test/Driver/fast-math.c +++ b/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 \ |