Commit | Line | Data |
---|---|---|
537aefaf AB |
1 | .text |
2 | ||
3 | .macro addb_like_test mnem | |
4 | \mnem r0,r0,r1,0,8,2 | |
5 | \mnem\().f r0,r0,r1,16,8,2 | |
6 | \mnem\().f.sx r0,r0,r1,8,24,6 | |
7 | .endm | |
8 | ||
9 | .macro andb_like_test mnem, size | |
10 | \mnem r0,r0,r1,0,8,\size | |
11 | \mnem\().f r0,r0,r1,16,8,\size | |
12 | .endm | |
13 | ||
14 | .macro notb_like_test mnem | |
15 | \mnem r0,r1,0,8 | |
16 | \mnem\().f r0,r1,16,16 | |
17 | .endm | |
18 | ||
19 | .macro div_like_test mnem | |
20 | \mnem r0,r0,r2,8,8 | |
21 | \mnem\().f r0,r0,0xf,8 | |
22 | .endm | |
23 | ||
24 | .macro qcmp_test mnem | |
25 | \mnem r2,r2,r0,8,8,0,1,3 | |
26 | \mnem r2,r2,r0,8,8,1,1 | |
27 | \mnem r2,r2,r0,8,8,1 | |
28 | \mnem r2,r2,r0,8,8 | |
29 | .endm | |
30 | ||
31 | .macro calcsxd_test mnem | |
32 | \mnem\() r0, r0, r0, 1 | |
33 | \mnem\().f r1, r1, r0, 2 | |
34 | \mnem\() r2, r2, r3, 4 | |
35 | \mnem\().f r0, r0, r0, 8 | |
36 | \mnem\() r3, r3, r0, 16 | |
37 | \mnem\().f r0, r0, r0, 32 | |
38 | \mnem\() r0, r0, r1, 64 | |
39 | \mnem\().f r2, r2, r0, 128 | |
40 | \mnem\() r1, r1, r2, 256 | |
41 | .endm | |
42 | ||
43 | addb_like_test addb | |
44 | addb_like_test subb | |
45 | addb_like_test adcb | |
46 | addb_like_test sbcb | |
47 | ||
48 | andb_like_test andb, 2 | |
49 | andb_like_test xorb, 2 | |
50 | andb_like_test orb, 2 | |
51 | andb_like_test shlb, 2 | |
52 | andb_like_test shrb, 2 | |
53 | andb_like_test fxorb, 8 | |
54 | andb_like_test wxorb, 16 | |
55 | ||
56 | notb_like_test notb | |
57 | notb_like_test cntbb | |
58 | ||
59 | div_like_test div | |
60 | div_like_test mod | |
61 | div_like_test divm | |
62 | ||
63 | qcmp_test qcmp.ar | |
64 | qcmp_test qcmp.al | |
65 | ||
66 | calcsxd_test calcsd | |
67 | calcsxd_test calcxd |