[PowerPC] 'cc' should be an alias only to 'cr0'
authorHal Finkel <hfinkel@anl.gov>
Thu, 4 Dec 2014 00:46:20 +0000 (00:46 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 4 Dec 2014 00:46:20 +0000 (00:46 +0000)
commitec086bf087e30f9bbcacbd492e3d30df9202bf6b
treee6c9927365a5d60380b9b320e05615801f2888ca
parent6bb0038b54056b71a6cd936024ff0f2c38543228
[PowerPC] 'cc' should be an alias only to 'cr0'

We had mistakenly believed that GCC's 'cc' referred to the entire
condition-code register (cr0 through cr7) -- and implemented this in r205630 to
fix PR19326, but 'cc' is actually an alias only to 'cr0'. This is causing LLVM
to clobber too much with legacy code with inline asm using the 'cc' clobber.

Fixes PR21451.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223328 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCRegisterInfo.td
test/CodeGen/PowerPC/cc.ll