1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Thumb2 assembly parsing and encoding for signed saturating arithmetic insns.

llvm-svn: 139810
This commit is contained in:
Jim Grosbach 2011-09-15 18:06:15 +00:00
parent 1adbd30351
commit d6993cb54c

View File

@ -1345,6 +1345,74 @@ _func:
@ CHECK: pli [sp, r2] @ encoding: [0x1d,0xf9,0x02,0xf0]
@------------------------------------------------------------------------------
@ QADD/QADD16/QADD8
@------------------------------------------------------------------------------
qadd r1, r2, r3
qadd16 r1, r2, r3
qadd8 r1, r2, r3
itte gt
qaddgt r1, r2, r3
qadd16gt r1, r2, r3
qadd8le r1, r2, r3
@ CHECK: qadd r1, r2, r3 @ encoding: [0x83,0xfa,0x82,0xf1]
@ CHECK: qadd16 r1, r2, r3 @ encoding: [0x92,0xfa,0x13,0xf1]
@ CHECK: qadd8 r1, r2, r3 @ encoding: [0x82,0xfa,0x13,0xf1]
@ CHECK: itte gt @ encoding: [0xc6,0xbf]
@ CHECK: qaddgt r1, r2, r3 @ encoding: [0x83,0xfa,0x82,0xf1]
@ CHECK: qadd16gt r1, r2, r3 @ encoding: [0x92,0xfa,0x13,0xf1]
@ CHECK: qadd8le r1, r2, r3 @ encoding: [0x82,0xfa,0x13,0xf1]
@------------------------------------------------------------------------------
@ QDADD/QDSUB
@------------------------------------------------------------------------------
qdadd r6, r7, r8
qdsub r6, r7, r8
itt hi
qdaddhi r6, r7, r8
qdsubhi r6, r7, r8
@ CHECK: qdadd r6, r7, r8 @ encoding: [0x88,0xfa,0x97,0xf6]
@ CHECK: qdsub r6, r7, r8 @ encoding: [0x88,0xfa,0xb7,0xf6]
@ CHECK: itt hi @ encoding: [0x84,0xbf]
@ CHECK: qdaddhi r6, r7, r8 @ encoding: [0x88,0xfa,0x97,0xf6]
@ CHECK: qdsubhi r6, r7, r8 @ encoding: [0x88,0xfa,0xb7,0xf6]
@------------------------------------------------------------------------------
@ QSAX
@------------------------------------------------------------------------------
qsax r9, r12, r0
it eq
qsaxeq r9, r12, r0
@ CHECK: qsax r9, r12, r0 @ encoding: [0xec,0xfa,0x10,0xf9]
@ CHECK: it eq @ encoding: [0x08,0xbf]
@ CHECK: qsaxeq r9, r12, r0 @ encoding: [0xec,0xfa,0x10,0xf9]
@------------------------------------------------------------------------------
@ QSUB/QSUB16/QSUB8
@------------------------------------------------------------------------------
qsub r1, r2, r3
qsub16 r1, r2, r3
qsub8 r1, r2, r3
itet le
qsuble r1, r2, r3
qsub16gt r1, r2, r3
qsub8le r1, r2, r3
@ CHECK: qsub r1, r2, r3 @ encoding: [0x83,0xfa,0xa2,0xf1]
@ CHECK: qsub16 r1, r2, r3 @ encoding: [0xd2,0xfa,0x13,0xf1]
@ CHECK: qsub8 r1, r2, r3 @ encoding: [0xc2,0xfa,0x13,0xf1]
@ CHECK: itet le @ encoding: [0xd6,0xbf]
@ CHECK: qsuble r1, r2, r3 @ encoding: [0x83,0xfa,0xa2,0xf1]
@ CHECK: qsub16gt r1, r2, r3 @ encoding: [0xd2,0xfa,0x13,0xf1]
@ CHECK: qsub8le r1, r2, r3 @ encoding: [0xc2,0xfa,0x13,0xf1]
@------------------------------------------------------------------------------
@ SUB (register)
@------------------------------------------------------------------------------