This patch addresses the change in the June Armv8.1-M Mainline specification, that...
[deliverable/binutils-gdb.git] / gas / testsuite / gas / pru / alu.s
1 # Source file used to test the ALU class of instructions.
2
3 foo:
4 # Test various addressing modes
5 add fp, fp, fp
6 add fp, fp, 0xff
7 add fp, fp, 0
8 add fp, fp, 0
9 add fp.b1, fp.w1, 0
10 add r1.b1, r2.b2, r3.b3
11 adc r1.b1, r2.b2, r3.b3
12 adc r1.b1, r2.b2, 101-2
13
14 # Test ALU opcodes
15 add r0, r0, r0
16 adc r0, r0, r0
17 sub r1, r31, 10
18 suc r1, r31, 10
19 lsl r31, r31, 10
20 lsr r31, r31, 10
21 rsb r16, r16.b3, 10
22 rsc r16, r16.b3, 10
23 and r1.w1, r1.b3, 0xaa
24 or r1.w1, r1.b3, 0xaa
25 xor r1.w1, r1.b3, 0xaa
26 not r2, r1
27 min r1, r1, r2
28 max r1, r2, r3.w2
29 clr r1, r2, r3.w2
30 set r1, r2, 12
This page took 0.030487 seconds and 4 git commands to generate.