diff options
| author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-08-31 12:31:03 +0000 |
|---|---|---|
| committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-08-31 12:31:03 +0000 |
| commit | f2392f69d5f135c97205b5ef5c3c4d68a95ccfa4 (patch) | |
| tree | 4706729a6a75d69ba5a7f91b505f5318076dcab9 /clang/test/Driver/fast-math.c | |
| parent | a6c9744a6ce55ec525834f16de2bc2dedfc65524 (diff) | |
| download | bcm5719-llvm-f2392f69d5f135c97205b5ef5c3c4d68a95ccfa4.tar.gz bcm5719-llvm-f2392f69d5f135c97205b5ef5c3c4d68a95ccfa4.zip | |
Revision r280064 adds new options -fdenormal-fp-math and passes through option
-ffast-math to CC1, but it included a wrong llvm regression tests which was
removed in r280065. Although regression test noexceptionsfpmath.c makes sure
-fno-trapping-math ends up as a function attribute, this adds a test that
explicitly checks the driver output for -fno-trapping-math.
llvm-svn: 280227
Diffstat (limited to 'clang/test/Driver/fast-math.c')
| -rw-r--r-- | clang/test/Driver/fast-math.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Driver/fast-math.c b/clang/test/Driver/fast-math.c index 1cc63daeb06..a09a2cebe06 100644 --- a/clang/test/Driver/fast-math.c +++ b/clang/test/Driver/fast-math.c @@ -232,12 +232,15 @@ // CHECK-NO-UNSAFE-MATH-NOT: "-menable-unsafe-fp-math" // CHECK-NO-UNSAFE-MATH: "-o" // +// RUN: %clang -### -ftrapping-math -fno-trapping-math -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-NO-TRAPPING-MATH %s // RUN: %clang -### -fdenormal-fp-math=ieee -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP-DENORMAL-IEEE %s // RUN: %clang -### -fdenormal-fp-math=preserve-sign -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP-DENORMAL-PS %s // RUN: %clang -### -fdenormal-fp-math=positive-zero -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP-DENORMAL-PZ %s +// CHECK-NO-TRAPPING-MATH: "-fno-trapping-math" // CHECK-FP-DENORMAL-IEEE: "-fdenormal-fp-math=ieee" // CHECK-FP-DENORMAL-PS: "-fdenormal-fp-math=preserve-sign" // CHECK-FP-DENORMAL-PZ: "-fdenormal-fp-math=positive-zero" |

