r280227 - Revision r280064 adds new options -fdenormal-fp-math and passes through option
Sjoerd Meijer via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 31 05:31:03 PDT 2016
Author: sjoerdmeijer
Date: Wed Aug 31 07:31:03 2016
New Revision: 280227
URL: http://llvm.org/viewvc/llvm-project?rev=280227&view=rev
Log:
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.
Modified:
cfe/trunk/test/Driver/fast-math.c
Modified: cfe/trunk/test/Driver/fast-math.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/fast-math.c?rev=280227&r1=280226&r2=280227&view=diff
==============================================================================
--- cfe/trunk/test/Driver/fast-math.c (original)
+++ cfe/trunk/test/Driver/fast-math.c Wed Aug 31 07:31:03 2016
@@ -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"
More information about the cfe-commits
mailing list