[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

zhijian lin via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 11:28:13 PDT 2024


================
@@ -0,0 +1,15 @@
+// RUN: not %clang %s --target=x86_64 -fcomplex-ppc-gnu-abi 2>&1 \
+// RUN:     | FileCheck %s -check-prefix=X86_64
+// X86_64: error: unsupported option '-fcomplex-ppc-gnu-abi' for target 'x86_64'
+
+// RUN: not %clang %s --target=ppc64 -fcomplex-ppc-gnu-abi 2>&1 \
----------------
diggerlin wrote:

I think two test scenarios is enough , 

`if (!TC.getTriple().isPPC32() || !TC.getTriple().isOSBinFormatELF()) {`

one for `!TC.getTriple().isPPC32()` , other for `!TC.getTriple().isOSBinFormatELF()`

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


More information about the cfe-commits mailing list