Treat the ARM inline asm {cc} constraint as a physreg (%CPSR), just like X86
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 18 Jun 2010 16:49:33 +0000 (16:49 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 18 Jun 2010 16:49:33 +0000 (16:49 +0000)
commit0d8ba3303b40a150f70ff63f04f57160984492c1
tree2952503264472bde1a949b267a3d0ae8785026ab
parent45934330150aecbc98c2d60fe7f17fa69e62ba71
Treat the ARM inline asm {cc} constraint as a physreg (%CPSR), just like X86
does for {flags}. If we create virtual registers of the CCR class, RegAllocFast
may try to spill them, and we can't do that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106289 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/crash-O0.ll [new file with mode: 0644]