Lines Matching refs:imm
5 .macro test_shift prefix, dst, src, v, imm
6 \prefix\()_set \dst, \src, \v, \imm
7 \prefix\()_ver \dst, \v, \imm
10 .macro test_shift_sd prefix, v, imm
11 test_shift \prefix, a3, a2, \v, \imm
12 test_shift \prefix, a2, a2, \v, \imm
32 .macro slli_set dst, src, v, imm
34 slli \dst, \src, \imm
37 .macro slli_ver dst, v, imm
39 movi a3, ((\v) << (\imm)) & 0xffffffff
48 .macro srai_set dst, src, v, imm
50 srai \dst, \src, \imm
53 .macro srai_ver dst, v, imm
55 .if (\imm)
56 movi a3, (((\v) >> (\imm)) & 0xffffffff) | \
57 ~((((\v) & 0x80000000) >> ((\imm) - 1)) - 1)
70 .macro srli_set dst, src, v, imm
72 srli \dst, \src, \imm
75 .macro srli_ver dst, v, imm
77 movi a3, (((\v) >> (\imm)) & 0xffffffff)
87 .macro sll_set dst, src, v, imm
88 movi a2, \imm
94 .macro sll_sar_set dst, src, v, imm
95 movi a2, 32 - \imm
101 .macro sll_ver dst, v, imm
102 slli_ver \dst, \v, (\imm) & 0x1f
105 .macro sll_sar_ver dst, v, imm
106 slli_ver \dst, \v, \imm
115 .macro srl_set dst, src, v, imm
116 movi a2, \imm
122 .macro srl_sar_set dst, src, v, imm
123 movi a2, \imm
129 .macro srl_ver dst, v, imm
130 srli_ver \dst, \v, (\imm) & 0x1f
133 .macro srl_sar_ver dst, v, imm
134 srli_ver \dst, \v, \imm
145 .macro sra_set dst, src, v, imm
146 movi a2, \imm
152 .macro sra_sar_set dst, src, v, imm
153 movi a2, \imm
159 .macro sra_ver dst, v, imm
160 srai_ver \dst, \v, (\imm) & 0x1f
163 .macro sra_sar_ver dst, v, imm
164 srai_ver \dst, \v, \imm
175 .macro src_set dst, src, v, imm
176 movi a2, \imm
183 .macro src_sar_set dst, src, v, imm
184 movi a2, \imm
191 .macro src_ver dst, v, imm
192 src_sar_ver \dst, \v, (\imm) & 0x1f
195 .macro src_sar_ver dst, v, imm
197 movi a3, ((\v) >> (\imm)) & 0xffffffff