ARM: make sure ARM-mode pseudo-inst requires IsARM
authorTim Northover <tnorthover@apple.com>
Fri, 23 Aug 2013 10:16:39 +0000 (10:16 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 23 Aug 2013 10:16:39 +0000 (10:16 +0000)
commit287c84a0b45cc826b1200f4cf4be3547d2fcd69c
treefc90a61d9c87bbf321ddc29b2ce8af28b49957dc
parentc73488a38ecb26340604706003e84cff7bd48ddf
ARM: make sure ARM-mode pseudo-inst requires IsARM

I'd forgotten that "Requires" blocks override rather than add to the
constraints, so my pseudo-instruction was being selected in Thumb mode leading
to nonsense instructions.

rdar://problem/14817358

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189096 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/Thumb2/thumb2-select.ll