From: Li Jia He Date: Thu, 1 Nov 2018 02:32:49 +0000 (+0000) Subject: [Clang][PowerPC] Support constraint 'wi' in asm X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ddbc316e2f505a52102642c899015af41acc04f;p=clang [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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345809 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets/PPC.h b/lib/Basic/Targets/PPC.h index 439c73a0e3..97d04af998 100644 --- a/lib/Basic/Targets/PPC.h +++ b/lib/Basic/Targets/PPC.h @@ -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;