When matching asm operands, always try to match the most restricted type first.
authorOwen Anderson <resistor@mac.com>
Tue, 18 Jan 2011 23:01:21 +0000 (23:01 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 18 Jan 2011 23:01:21 +0000 (23:01 +0000)
commit6cd0b17ba7f7efae41966c4a36ee725523d38575
tree2e3332a6df5f83f76d8c3aafd93122136a57edf1
parent61505907f54d4e7df2f9d90b1ed3a4caa0469d26
When matching asm operands, always try to match the most restricted type first.
Unfortunately, while this is the "right" thing to do, it breaks some ARM
asm parsing tests because MemMode5 and ThumbMemModeReg are ambiguous.  This
is tricky to resolve since neither is a subset of the other.

XFAIL the test for now.  The old way was broken in other ways, just ways
we didn't happen to be testing, and our ARM asm parsing is going to require
significant revisiting at a later point anyways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123786 91177308-0d34-0410-b5e6-96231b3b80d8
test/MC/ARM/simple-fp-encoding.s
utils/TableGen/AsmMatcherEmitter.cpp