[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:03 PDT 2023


================
@@ -807,6 +807,7 @@ ArrayRef<TargetInfo::GCCRegAlias> PPCTargetInfo::getGCCRegAliases() const {
 // PPC ELFABIv2 DWARF Definitoin "Table 2.26. Mappings of Common Registers".
 // vs0 ~ vs31 is mapping to 32 - 63,
 // vs32 ~ vs63 is mapping to 77 - 108.
+// And this mapping applies to all OSes which runs on powerpc.
----------------
hubert-reinterpretcast wrote:

While likely true (e.g., GCC for big-endian Linux accepts these: https://godbolt.org/z/sGK7znYGx), this patch does not implement things that way.

For info, GCC will recognize these clobber names even with `-mcpu=power4`.

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


More information about the cfe-commits mailing list