blob: 139c1955317811f4dbe1a6be5e8118d579dd8dd7 [file] [log] [blame]
.syntax unified
.text
.align 2
.thumb
# Test of invalid operands for ADD{S} and SUB{S} instructions
# in Thumb2 mode. The instruction form being testing
# involves having the first 2 operands be SP.
add sp, sp, r0, LSL #4
add sp, sp, r0, LSR #3
add sp, sp, r0, ASR #3
add sp, sp, r0, ROR #3
add sp, sp, r0, RRX
adds sp, sp, r0, LSL #4
adds sp, sp, r0, LSR #3
adds sp, sp, r0, ASR #3
adds sp, sp, r0, ROR #3
adds sp, sp, r0, RRX
sub sp, sp, r0, LSL #4
sub sp, sp, r0, LSR #3
sub sp, sp, r0, ASR #3
sub sp, sp, r0, ROR #3
sub sp, sp, r0, RRX
subs sp, sp, r0, LSL #4
subs sp, sp, r0, LSR #3
subs sp, sp, r0, ASR #3
subs sp, sp, r0, ROR #3
subs sp, sp, r0, RRX