[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
================
@@ -109,20 +112,37 @@
// CHECK-TRAP: "-cc1"
// CHECK-TRAP: "-ffp-exception-behavior=strict"
+// RUN: %clang -### -nostdinc -ffp-model=aggressive -c %s 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-FPM-AGGR %s
+// CHECK-FPM-AGGR: "-cc1"
+// CHECK-FPM-AGGR: "-menable-no-infs"
----------------
MaskRay wrote:
see my other comment: pack some options (to show they are adjacent) or use `-SAME: {{^}} "-menable-no-nans"` (clang/test/Driver/linux-cross.cpp style)
https://github.com/llvm/llvm-project/pull/100453
More information about the cfe-commits
mailing list