The purpose of the patch is to fix the syntax of ARM mrc and mrc2 instructions when...
authorMihai Popa <mihail.popa@gmail.com>
Mon, 13 May 2013 14:10:04 +0000 (14:10 +0000)
committerMihai Popa <mihail.popa@gmail.com>
Mon, 13 May 2013 14:10:04 +0000 (14:10 +0000)
commitf86e436fb95670ed110818fefa403f21ae104639
tree11d3a6071ea91ee9dfb1dbb09c606eb103dc567d
parentd26c93d3a8a484c5b42f06163ae5de787f0ac276
The purpose of the patch is to fix the syntax of ARM mrc and mrc2 instructions when they are used to write to the APSR. In this case, the destination operand should be APSR_nzcv, and the encoding of the target should be 0b1111 (same as for PC). In pre-UAL syntax, this form used the PC register as a textual target. This is still allowed for backward compatibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseRegisterInfo.cpp
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMRegisterInfo.td
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
test/MC/ARM/basic-arm-instructions.s
test/MC/Disassembler/ARM/basic-arm-instructions.txt