mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
Fix encoding of Thumb2 shifted register operands with RRX shifts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee5655dca4
commit
12c7e90d36
@ -1277,6 +1277,7 @@ getT2SORegOpValue(const MCInst &MI, unsigned OpIdx,
|
||||
case ARM_AM::lsl: SBits = 0x0; break;
|
||||
case ARM_AM::lsr: SBits = 0x2; break;
|
||||
case ARM_AM::asr: SBits = 0x4; break;
|
||||
case ARM_AM::rrx: // FALLTHROUGH
|
||||
case ARM_AM::ror: SBits = 0x6; break;
|
||||
}
|
||||
|
||||
|
@ -1029,3 +1029,11 @@ _func:
|
||||
@ CHECK: nopne @ encoding: [0x00,0xbf]
|
||||
@ CHECK: subne r5, r6, r7 @ encoding: [0xf5,0x1b]
|
||||
@ CHECK: addeq r1, r2, #4 @ encoding: [0x11,0x1d]
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ SUB (register)
|
||||
@------------------------------------------------------------------------------
|
||||
sub.w r5, r2, r12, rrx
|
||||
|
||||
@ CHECK: sub.w r5, r2, r12, rrx @ encoding: [0xa2,0xeb,0x3c,0x05]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user