Thumb2 assembly parsing and encoding for SHASX/SHSAX.

llvm-svn: 139870
This commit is contained in:
Jim Grosbach 2011-09-15 22:34:29 +00:00
parent 0e654e52d9
commit 423aae30b2
2 changed files with 40 additions and 0 deletions

View File

@ -4946,6 +4946,10 @@ def : MnemonicAlias<"srs", "srsia">;
def : MnemonicAlias<"qsubaddx", "qsax">;
// SASX == SADDSUBX
def : MnemonicAlias<"saddsubx", "sasx">;
// SHASX == SHADDSUBX
def : MnemonicAlias<"shaddsubx", "shasx">;
// SHSAX == SHSUBADDX
def : MnemonicAlias<"shsubaddx", "shsax">;
// LDRSBT/LDRHT/LDRSHT post-index offset if optional.
// Note that the write-back output register is a dummy operand for MC (it's

View File

@ -1678,6 +1678,42 @@ _func:
@ CHECK: seveq.w @ encoding: [0xaf,0xf3,0x04,0x80]
@------------------------------------------------------------------------------
@ SHASX
@------------------------------------------------------------------------------
shasx r4, r8, r2
it gt
shasxgt r4, r8, r2
shaddsubx r4, r8, r2
it gt
shaddsubxgt r4, r8, r2
@ CHECK: shasx r4, r8, r2 @ encoding: [0xa8,0xfa,0x22,0xf4]
@ CHECK: it gt @ encoding: [0xc8,0xbf]
@ CHECK: shasxgt r4, r8, r2 @ encoding: [0xa8,0xfa,0x22,0xf4]
@ CHECK: shasx r4, r8, r2 @ encoding: [0xa8,0xfa,0x22,0xf4]
@ CHECK: it gt @ encoding: [0xc8,0xbf]
@ CHECK: shasxgt r4, r8, r2 @ encoding: [0xa8,0xfa,0x22,0xf4]
@------------------------------------------------------------------------------
@ SHASX
@------------------------------------------------------------------------------
shsax r4, r8, r2
it gt
shsaxgt r4, r8, r2
shsubaddx r4, r8, r2
it gt
shsubaddxgt r4, r8, r2
@ CHECK: shsax r4, r8, r2 @ encoding: [0xe8,0xfa,0x22,0xf4]
@ CHECK: it gt @ encoding: [0xc8,0xbf]
@ CHECK: shsaxgt r4, r8, r2 @ encoding: [0xe8,0xfa,0x22,0xf4]
@ CHECK: shsax r4, r8, r2 @ encoding: [0xe8,0xfa,0x22,0xf4]
@ CHECK: it gt @ encoding: [0xc8,0xbf]
@ CHECK: shsaxgt r4, r8, r2 @ encoding: [0xe8,0xfa,0x22,0xf4]
@------------------------------------------------------------------------------
@ SUB (register)
@------------------------------------------------------------------------------