]> granicus.if.org Git - clang/commit
Add a PPC inline asm constraint type for single CR bits
authorHal Finkel <hfinkel@anl.gov>
Sun, 2 Mar 2014 18:24:18 +0000 (18:24 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 2 Mar 2014 18:24:18 +0000 (18:24 +0000)
commit2052d938aa4adb2f1a82dddef7c02aa9d115fd89
treea93b3a9a5c5236abdb26a651c7d95c621469579f
parent4dd639d7bbba233ad419dcb4399c69d4e79d7c4f
Add a PPC inline asm constraint type for single CR bits

This adds support for the PPC "wc" inline asm constraint (used for allocating
individual CR bits). Support for this constraint type was recently added to the
LLVM PowerPC backend. Although gcc does not currently support allocating
individual CR bits, this identifier choice has been coordinated with the gcc
PowerPC team, and will be marked as reserved for this purpose in the gcc
constraints.md file.

Prior to this change, none of the multi-character PPC constraints were handled
correctly (the '^' escape character was not being added as required by the
parsing code in LLVM). This should now be fixed. I'll add tests for these other
constraints as support is added for them in the backend.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/ppc64-inline-asm.c [new file with mode: 0644]