[clang] [Clang][Driver] Override complex number calculation method by -fno-fa… (PR #132680)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 1 22:52:00 PDT 2025


================
@@ -177,14 +177,83 @@
 // RUN: %clang -### -target x86_64 -ffast-math -fcomplex-arithmetic=basic -c %s 2>&1 \
 // RUN:   | FileCheck --check-prefix=BASIC %s
 
-// BASIC: -complex-range=basic
-// FULL: -complex-range=full
-// PRMTD: -complex-range=promoted
-// BASIC-NOT: -complex-range=improved
-// CHECK-NOT: -complex-range=basic
-// IMPRVD: -complex-range=improved
-// IMPRVD-NOT: -complex-range=basic
-// CHECK-NOT: -complex-range=improved
+// RUN: %clang -### -target x86_64 -fcx-limited-range -fno-fast-math \
----------------
MaskRay wrote:

`-target ` has been deprecated for a long time. `--target=` for new tests

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


More information about the cfe-commits mailing list