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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 17 10:55:32 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"
----------------
MaskRay wrote:

perhaps pack some options on the same line to show that they are adjacent (no other option in between)

If this extra check isn't important, I expect at least `-SAME:`

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


More information about the cfe-commits mailing list