[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 7 08:53:04 PDT 2023
================
@@ -2,6 +2,10 @@
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +vsx \
// RUN: -target-cpu pwr9 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple powerpc64-ibm-aix -target-feature +vsx \
+// RUN: -target-cpu pwr9 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple powerpc-ibm-aix -target-feature +vsx \
+// RUN: -target-cpu pwr9 -emit-llvm %s -o - | FileCheck %s
// This case is to test VSX register support in the clobbers list for inline asm.
void testVSX (void) {
----------------
hubert-reinterpretcast wrote:
The `%vs32` syntax is not accepted by the AIX system assembler. It seems to me that, as a front-end patch, this is not responsible for the recognition of the `%vs32` syntax in the assembly string, so perhaps (to have a more portable C test source) we should use plain `32` instead?
[aside: The IBM XL compilers accepted (without the percent sign and without usage checking; probably not in a documented manner) things like `r0`, etc. as alternatives to literal `0`, etc. in the assembly string.]
https://github.com/llvm/llvm-project/pull/68476
More information about the cfe-commits
mailing list