Commit | Line | Data |
---|---|---|
17828f45 JM |
1 | .syntax unified |
2 | .text | |
3 | .align 2 | |
4 | .global thumb2_mul | |
5 | .thumb | |
6 | .thumb_func | |
7 | thumb2_mul: | |
8 | itttt eq | |
9 | # Cannot use 16-bit encoding because of use of high register. | |
10 | muleq.n r0, r0, r8 | |
11 | # Cannot use 16-bit encoding because source does not match destination. | |
12 | muleq.n r0, r1, r1 | |
13 | muleq.n r0, r1, r2 | |
14 | # There is no conditional "muls". | |
15 | mulseq r0, r0, r1 | |
16 | # There is no 32-bit "muls". | |
17 | muls.w r0, r0, r1 | |
18 | # Cannot use high registers with "muls". | |
19 | muls r0, r0, r8 | |
20 | muls r0, r8, r0 |