summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ppc64-inline-asm.c
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-03-02 18:23:39 +0000
committerHal Finkel <hfinkel@anl.gov>2014-03-02 18:23:39 +0000
commit6aca2373f2b2deb9abbbbb16986c4f9066d0d52c (patch)
tree395cf123e277ba737be7f51a038239be15503bbf /clang/test/CodeGen/ppc64-inline-asm.c
parentfc256c395296a1caac7e6f1094f2b1c4cd9c8878 (diff)
downloadbcm5719-llvm-6aca2373f2b2deb9abbbbb16986c4f9066d0d52c.tar.gz
bcm5719-llvm-6aca2373f2b2deb9abbbbb16986c4f9066d0d52c.zip
Add a PPC inline asm constraint type for single CR bits
Now that the PowerPC backend can track individual CR bits as first-class registers, we should also have a way of allocating them for inline asm statements. Because these registers are only one bit, if an output variable is implicitly cast to a larger integer size, we'll get an any_extend to that larger type (this is part of the existing target-independent logic). As a result, regardless of the size of the output type, only the first bit is meaningful. The constraint identifier "wc" has been chosen for this purpose. 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. llvm-svn: 202657
Diffstat (limited to 'clang/test/CodeGen/ppc64-inline-asm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud