3 .macro addb_like_test mnem
5 \mnem\().f r0,r0,r1,16,8,2
6 \mnem\().f.sx r0,r0,r1,8,24,6
9 .macro andb_like_test mnem, size
10 \mnem r0,r0,r1,0,8,\size
11 \mnem\().f r0,r0,r1,16,8,\size
14 .macro notb_like_test mnem
16 \mnem\().f r0,r1,16,16
19 .macro div_like_test mnem
21 \mnem\().f r0,r0,0xf,8
25 \mnem r2,r2,r0,8,8,0,1,3
26 \mnem r2,r2,r0,8,8,1,1
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
43 .macro calcbsxdkey_test mnem
50 .macro mxb_like_test mnem
51 \mnem\() r0, r1, 0, 1, 2
52 \mnem\() r0, r1, 7, 8, 7
53 \mnem\() r0, r1, 7, 7, 8
54 \mnem\().s r2, r3, 1, 4, 3, 2
55 \mnem\().s r2, r3, 7, 8, 7, 7
56 \mnem\().s r2, r3, 7, 7, 8, 7
57 \mnem\().s r2, r3, 7, 8, 7, 8
60 .macro addsubl_test mnem
62 \mnem\() r2, r2, 32767
63 \mnem\() r5, r5, -32768
64 \mnem\().f r10, r10, 0
65 \mnem\().f r11, r11, 1
66 \mnem\().f r12, r12, -1
69 .macro andorxorl_test mnem
72 \mnem\() r2, r2, 65535
73 \mnem\().f r10, r10, 0
74 \mnem\().f r11, r11, 1
75 \mnem\().f r12, r12, 65535
78 .macro andorab_test mnem
80 \mnem\() r1, r2, 15, 16
81 \mnem\().f r2, r3, 0, 1
82 \mnem\().f r12, r13, 16, 16
83 \mnem\() r0, r0, r0, 0, 1
84 \mnem\() r1, r1, r2, 15, 16
85 \mnem\().f r2, r2, r3, 0, 1
86 \mnem\().f r12, r12, r13, 16, 16
94 andb_like_test andb, 2
95 andb_like_test xorb, 2
97 andb_like_test shlb, 2
98 andb_like_test shrb, 2
99 andb_like_test fxorb, 8
100 andb_like_test wxorb, 16
115 calcbsxdkey_test calcbsd
116 calcbsxdkey_test calcbxd
117 calcbsxdkey_test calckey
118 calcbsxdkey_test calcxkey
146 .macro cscb_test mnem
148 \mnem\() r0,0x12345678,r20
149 \mnem\() r6,r7,0xffffffff
150 \mnem\() r8,0xffffffff,0xffffffff
152 \mnem\() 0,0xffffffff,r10
153 \mnem\() 0,r12,0xffffffff
155 \mnem\() r3,0x12345678,0x2
157 \mnem\() 0,0xffffffff,0x1
165 .macro zncv_test mnem
167 \mnem\() r0,0x12345678,r20
168 \mnem\() r6,r7,0xffffffff
169 \mnem\() r8,0xffffffff,0xffffffff
171 \mnem\() 0,0xffffffff,r10
172 \mnem\() 0,r12,0xffffffff
174 \mnem\() r3,0x12345678,0x2
176 \mnem\() 0,0xffffffff,0x1
178 \mnem\() 0,0xffffffff,-1