[clang] [Driver] Introduce ffp-model=aggressive (PR #100453)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 10:18:34 PDT 2024


================
@@ -163,23 +183,41 @@
 // CHECK-FEB-IGNORE: "-fno-rounding-math"
 // CHECK-FEB-IGNORE: "-ffp-exception-behavior=ignore"
 
-// RUN: %clang -### -nostdinc -Werror -ffast-math -ffp-model=fast -c %s 2>&1 \
+// RUN: %clang -### -nostdinc -Werror -ffast-math -ffp-model=aggressive -c %s 2>&1 \
+// RUN:   | FileCheck --check-prefix=CHECK-FASTMATH-FPM-AGGR %s
+// CHECK-FASTMATH-FPM-AGGR: "-cc1"
----------------
andykaylor wrote:

This is a direct copy of what this test was doing before for -ffp-model=fast. The "-SAME" check should work here. I'm not sure if the "-NOT" checks in the new -ffp-model=fast test below will work with "-SAME" but I can try that.

https://github.com/llvm/llvm-project/pull/100453


More information about the cfe-commits mailing list