From 9f5b323fbeba4646abbafb5de76aedddcd504e7e Mon Sep 17 00:00:00 2001 From: Sjoerd Meijer Date: Wed, 31 Aug 2016 12:31:03 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280227 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/fast-math.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/Driver/fast-math.c b/test/Driver/fast-math.c index 1cc63daeb0..a09a2cebe0 100644 --- a/test/Driver/fast-math.c +++ b/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" -- 2.40.0