ARM: Thumb add(sp plus register) asm constraints.
Make sure when parsing the Thumb1 sp+register ADD instruction that the source and destination operands match. In thumb2, just use the wide encoding if they don't. In Thumb1, issue a diagnostic. rdar://11219154 llvm-svn: 155748
Showing
- llvm/lib/Target/ARM/ARMInstrThumb.td 2 additions, 2 deletionsllvm/lib/Target/ARM/ARMInstrThumb.td
- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp 20 additions, 0 deletionsllvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
- llvm/test/MC/ARM/basic-thumb2-instructions.s 2 additions, 0 deletionsllvm/test/MC/ARM/basic-thumb2-instructions.s
- llvm/test/MC/ARM/thumb-diagnostics.s 5 additions, 0 deletionsllvm/test/MC/ARM/thumb-diagnostics.s
Loading
Please register or sign in to comment