mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Thumb2 assembly parsing and encoding for SASX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0598b14aa
commit
e4e4a93e9e
@ -4944,6 +4944,8 @@ def : MnemonicAlias<"srs", "srsia">;
|
||||
|
||||
// QSAX == QSUBADDX
|
||||
def : MnemonicAlias<"qsubaddx", "qsax">;
|
||||
// SASX == SADDSUBX
|
||||
def : MnemonicAlias<"saddsubx", "sasx">;
|
||||
|
||||
// LDRSBT/LDRHT/LDRSHT post-index offset if optional.
|
||||
// Note that the write-back output register is a dummy operand for MC (it's
|
||||
|
@ -1578,6 +1578,24 @@ _func:
|
||||
@ CHECK: sadd8ne r3, r4, r8 @ encoding: [0x84,0xfa,0x08,0xf3]
|
||||
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ SASX
|
||||
@------------------------------------------------------------------------------
|
||||
saddsubx r9, r2, r7
|
||||
it ne
|
||||
saddsubxne r2, r5, r6
|
||||
sasx r9, r2, r7
|
||||
it ne
|
||||
sasxne r2, r5, r6
|
||||
|
||||
@ CHECK: sasx r9, r2, r7 @ encoding: [0xa2,0xfa,0x07,0xf9]
|
||||
@ CHECK: it ne @ encoding: [0x18,0xbf]
|
||||
@ CHECK: sasxne r2, r5, r6 @ encoding: [0xa5,0xfa,0x06,0xf2]
|
||||
@ CHECK: sasx r9, r2, r7 @ encoding: [0xa2,0xfa,0x07,0xf9]
|
||||
@ CHECK: it ne @ encoding: [0x18,0xbf]
|
||||
@ CHECK: sasxne r2, r5, r6 @ encoding: [0xa5,0xfa,0x06,0xf2]
|
||||
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ SUB (register)
|
||||
@------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user