[clang] [PPC] Disable vsx and altivec when -msoft-float is used (PR #100450)
Chen Zheng via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 31 00:25:49 PDT 2024
================
@@ -0,0 +1,26 @@
+// RUN: %clang -target powerpc64-unknown-unknown -mcpu=pwr10 -msoft-float -S -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECKSOFT
+// RUN: %clang -target powerpc64-unknown-unknown -mcpu=pwr10 -S -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECKNOSOFT
+
+int main () {
+ return 0;
+}
+
+// CHECKSOFT-DAG: -hard-float
+// CHECKSOFT-DAG: -vsx
+// CHECKSOFT-DAG: -altivec
+// CHECKSOFT-DAG: -direct-move,
----------------
chenzheng1030 wrote:
nit: do we need the `,` at the end?
https://github.com/llvm/llvm-project/pull/100450
More information about the cfe-commits
mailing list