r345809 - [Clang][PowerPC] Support constraint 'wi' in asm
Li Jia He via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 31 19:32:49 PDT 2018
Author: helijia
Date: Wed Oct 31 19:32:49 2018
New Revision: 345809
URL: http://llvm.org/viewvc/llvm-project?rev=345809&view=rev
Log:
[Clang][PowerPC] Support constraint 'wi' in asm
From the gcc manual, we can see that the specific limit of wi inline asm is “FP or VSX register to hold 64-bit integers for VSX insns or NO_REGS”. The link is https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Machine-Constraints.html#Machine-Constraints. We should accept this constraint.
Reviewed By: jsji
Differential Revision: https://reviews.llvm.org/D53265
Modified:
cfe/trunk/lib/Basic/Targets/PPC.h
Modified: cfe/trunk/lib/Basic/Targets/PPC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets/PPC.h?rev=345809&r1=345808&r2=345809&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets/PPC.h (original)
+++ cfe/trunk/lib/Basic/Targets/PPC.h Wed Oct 31 19:32:49 2018
@@ -201,6 +201,7 @@ public:
case 's': // VSX vector register to hold scalar float data
case 'a': // Any VSX register
case 'c': // An individual CR bit
+ case 'i': // FP or VSX register to hold 64-bit integers data
break;
default:
return false;
More information about the cfe-commits
mailing list