1 .syntax unified 2 .text 3 .align 2 4 .thumb 5 6 # Test of invalid operands for ADD{S} and SUB{S} instructions 7 # in Thumb2 mode. The instruction form being testing 8 # involves having the first 2 operands be SP. 9 add sp, sp, r0, LSL #4 10 add sp, sp, r0, LSR #3 11 add sp, sp, r0, ASR #3 12 add sp, sp, r0, ROR #3 13 add sp, sp, r0, RRX 14 adds sp, sp, r0, LSL #4 15 adds sp, sp, r0, LSR #3 16 adds sp, sp, r0, ASR #3 17 adds sp, sp, r0, ROR #3 18 adds sp, sp, r0, RRX 19 sub sp, sp, r0, LSL #4 20 sub sp, sp, r0, LSR #3 21 sub sp, sp, r0, ASR #3 22 sub sp, sp, r0, ROR #3 23 sub sp, sp, r0, RRX 24 subs sp, sp, r0, LSL #4 25 subs sp, sp, r0, LSR #3 26 subs sp, sp, r0, ASR #3 27 subs sp, sp, r0, ROR #3 28 subs sp, sp, r0, RRX 29