Commit | Line | Data |
---|---|---|
c19d1205 ZW |
1 | @ Three-argument forms of Thumb arithmetic instructions. |
2 | @ Commutative instructions allow either the second or third | |
3 | @ operand to equal the first. | |
4 | ||
5 | .text | |
6 | .global m | |
7 | .thumb_func | |
8 | m: | |
9 | adc r0,r0,r1 | |
10 | adc r0,r1,r0 | |
11 | ||
12 | and r0,r0,r1 | |
13 | and r0,r1,r0 | |
14 | ||
15 | eor r0,r0,r1 | |
16 | eor r0,r1,r0 | |
17 | ||
18 | mul r0,r0,r1 | |
19 | mul r0,r1,r0 | |
20 | ||
21 | orr r0,r0,r1 | |
22 | orr r0,r1,r0 | |
23 | ||
24 | bic r0,r0,r1 | |
25 | ||
26 | sbc r0,r0,r1 | |
27 | ||
28 | @ section padding for a.out's sake | |
29 | nop | |
30 | nop | |
31 | nop | |
32 | nop |