Lines Matching refs:addr

27 def regPlusImm : PatFrag<(ops node:$off, node:$addr),
28 (add node:$addr, node:$off),
34 def LOAD_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr), [],
35 "i32.load\t$dst, ${off}(${addr})">;
36 def LOAD_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
37 "i64.load\t$dst, ${off}(${addr})">;
38 def LOAD_F32 : I<(outs F32:$dst), (ins i32imm:$off, I32:$addr), [],
39 "f32.load\t$dst, ${off}(${addr})">;
40 def LOAD_F64 : I<(outs F64:$dst), (ins i32imm:$off, I32:$addr), [],
41 "f64.load\t$dst, ${off}(${addr})">;
46 def : Pat<(i32 (load I32:$addr)), (LOAD_I32 0, $addr)>;
47 def : Pat<(i64 (load I32:$addr)), (LOAD_I64 0, $addr)>;
48 def : Pat<(f32 (load I32:$addr)), (LOAD_F32 0, $addr)>;
49 def : Pat<(f64 (load I32:$addr)), (LOAD_F64 0, $addr)>;
52 def : Pat<(i32 (load (regPlusImm imm:$off, I32:$addr))),
53 (LOAD_I32 imm:$off, $addr)>;
54 def : Pat<(i64 (load (regPlusImm imm:$off, I32:$addr))),
55 (LOAD_I64 imm:$off, $addr)>;
56 def : Pat<(f32 (load (regPlusImm imm:$off, I32:$addr))),
57 (LOAD_F32 imm:$off, $addr)>;
58 def : Pat<(f64 (load (regPlusImm imm:$off, I32:$addr))),
59 (LOAD_F64 imm:$off, $addr)>;
60 def : Pat<(i32 (load (regPlusImm tglobaladdr:$off, I32:$addr))),
61 (LOAD_I32 tglobaladdr:$off, $addr)>;
62 def : Pat<(i64 (load (regPlusImm tglobaladdr:$off, I32:$addr))),
63 (LOAD_I64 tglobaladdr:$off, $addr)>;
64 def : Pat<(f32 (load (regPlusImm tglobaladdr:$off, I32:$addr))),
65 (LOAD_F32 tglobaladdr:$off, $addr)>;
66 def : Pat<(f64 (load (regPlusImm tglobaladdr:$off, I32:$addr))),
67 (LOAD_F64 tglobaladdr:$off, $addr)>;
68 def : Pat<(i32 (load (regPlusImm texternalsym:$off, I32:$addr))),
69 (LOAD_I32 texternalsym:$off, $addr)>;
70 def : Pat<(i64 (load (regPlusImm texternalsym:$off, I32:$addr))),
71 (LOAD_I64 texternalsym:$off, $addr)>;
72 def : Pat<(f32 (load (regPlusImm texternalsym:$off, I32:$addr))),
73 (LOAD_F32 texternalsym:$off, $addr)>;
74 def : Pat<(f64 (load (regPlusImm texternalsym:$off, I32:$addr))),
75 (LOAD_F64 texternalsym:$off, $addr)>;
102 def LOAD8_S_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr), [],
103 "i32.load8_s\t$dst, ${off}(${addr})">;
104 def LOAD8_U_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr), [],
105 "i32.load8_u\t$dst, ${off}(${addr})">;
106 def LOAD16_S_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr), [],
107 "i32.load16_s\t$dst, ${off}(${addr})">;
108 def LOAD16_U_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr), [],
109 "i32.load16_u\t$dst, ${off}(${addr})">;
110 def LOAD8_S_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
111 "i64.load8_s\t$dst, ${off}(${addr})">;
112 def LOAD8_U_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
113 "i64.load8_u\t$dst, ${off}(${addr})">;
114 def LOAD16_S_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
115 "i64.load16_s\t$dst, ${off}(${addr})">;
116 def LOAD16_U_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
117 "i64.load16_u\t$dst, ${off}(${addr})">;
118 def LOAD32_S_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
119 "i64.load32_s\t$dst, ${off}(${addr})">;
120 def LOAD32_U_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr), [],
121 "i64.load32_u\t$dst, ${off}(${addr})">;
126 def : Pat<(i32 (sextloadi8 I32:$addr)), (LOAD8_S_I32 0, $addr)>;
127 def : Pat<(i32 (zextloadi8 I32:$addr)), (LOAD8_U_I32 0, $addr)>;
128 def : Pat<(i32 (sextloadi16 I32:$addr)), (LOAD16_S_I32 0, $addr)>;
129 def : Pat<(i32 (zextloadi16 I32:$addr)), (LOAD16_U_I32 0, $addr)>;
130 def : Pat<(i64 (sextloadi8 I32:$addr)), (LOAD8_S_I64 0, $addr)>;
131 def : Pat<(i64 (zextloadi8 I32:$addr)), (LOAD8_U_I64 0, $addr)>;
132 def : Pat<(i64 (sextloadi16 I32:$addr)), (LOAD16_S_I64 0, $addr)>;
133 def : Pat<(i64 (zextloadi16 I32:$addr)), (LOAD16_U_I64 0, $addr)>;
134 def : Pat<(i64 (sextloadi32 I32:$addr)), (LOAD32_S_I64 0, $addr)>;
135 def : Pat<(i64 (zextloadi32 I32:$addr)), (LOAD32_U_I64 0, $addr)>;
138 def : Pat<(i32 (sextloadi8 (regPlusImm imm:$off, I32:$addr))),
139 (LOAD8_S_I32 imm:$off, $addr)>;
140 def : Pat<(i32 (zextloadi8 (regPlusImm imm:$off, I32:$addr))),
141 (LOAD8_U_I32 imm:$off, $addr)>;
142 def : Pat<(i32 (sextloadi16 (regPlusImm imm:$off, I32:$addr))),
143 (LOAD16_S_I32 imm:$off, $addr)>;
144 def : Pat<(i32 (zextloadi16 (regPlusImm imm:$off, I32:$addr))),
145 (LOAD16_U_I32 imm:$off, $addr)>;
146 def : Pat<(i64 (sextloadi8 (regPlusImm imm:$off, I32:$addr))),
147 (LOAD8_S_I64 imm:$off, $addr)>;
148 def : Pat<(i64 (zextloadi8 (regPlusImm imm:$off, I32:$addr))),
149 (LOAD8_U_I64 imm:$off, $addr)>;
150 def : Pat<(i64 (sextloadi16 (regPlusImm imm:$off, I32:$addr))),
151 (LOAD16_S_I64 imm:$off, $addr)>;
152 def : Pat<(i64 (zextloadi16 (regPlusImm imm:$off, I32:$addr))),
153 (LOAD16_U_I64 imm:$off, $addr)>;
154 def : Pat<(i64 (sextloadi32 (regPlusImm imm:$off, I32:$addr))),
155 (LOAD32_S_I64 imm:$off, $addr)>;
156 def : Pat<(i64 (zextloadi32 (regPlusImm imm:$off, I32:$addr))),
157 (LOAD32_U_I64 imm:$off, $addr)>;
158 def : Pat<(i32 (sextloadi8 (regPlusImm tglobaladdr:$off, I32:$addr))),
159 (LOAD8_S_I32 tglobaladdr:$off, $addr)>;
160 def : Pat<(i32 (zextloadi8 (regPlusImm tglobaladdr:$off, I32:$addr))),
161 (LOAD8_U_I32 tglobaladdr:$off, $addr)>;
162 def : Pat<(i32 (sextloadi16 (regPlusImm tglobaladdr:$off, I32:$addr))),
163 (LOAD16_S_I32 tglobaladdr:$off, $addr)>;
164 def : Pat<(i32 (zextloadi16 (regPlusImm tglobaladdr:$off, I32:$addr))),
165 (LOAD16_U_I32 tglobaladdr:$off, $addr)>;
166 def : Pat<(i64 (sextloadi8 (regPlusImm tglobaladdr:$off, I32:$addr))),
167 (LOAD8_S_I64 tglobaladdr:$off, $addr)>;
168 def : Pat<(i64 (zextloadi8 (regPlusImm tglobaladdr:$off, I32:$addr))),
169 (LOAD8_U_I64 tglobaladdr:$off, $addr)>;
170 def : Pat<(i64 (sextloadi16 (regPlusImm tglobaladdr:$off, I32:$addr))),
171 (LOAD16_S_I64 tglobaladdr:$off, $addr)>;
172 def : Pat<(i64 (zextloadi16 (regPlusImm tglobaladdr:$off, I32:$addr))),
173 (LOAD16_U_I64 tglobaladdr:$off, $addr)>;
174 def : Pat<(i64 (sextloadi32 (regPlusImm tglobaladdr:$off, I32:$addr))),
175 (LOAD32_S_I64 tglobaladdr:$off, $addr)>;
176 def : Pat<(i64 (zextloadi32 (regPlusImm tglobaladdr:$off, I32:$addr))),
177 (LOAD32_U_I64 tglobaladdr:$off, $addr)>;
178 def : Pat<(i32 (sextloadi8 (regPlusImm texternalsym:$off, I32:$addr))),
179 (LOAD8_S_I32 texternalsym:$off, $addr)>;
180 def : Pat<(i32 (zextloadi8 (regPlusImm texternalsym:$off, I32:$addr))),
181 (LOAD8_U_I32 texternalsym:$off, $addr)>;
182 def : Pat<(i32 (sextloadi16 (regPlusImm texternalsym:$off, I32:$addr))),
183 (LOAD16_S_I32 texternalsym:$off, $addr)>;
184 def : Pat<(i32 (zextloadi16 (regPlusImm texternalsym:$off, I32:$addr))),
185 (LOAD16_U_I32 texternalsym:$off, $addr)>;
186 def : Pat<(i64 (sextloadi8 (regPlusImm texternalsym:$off, I32:$addr))),
187 (LOAD8_S_I64 texternalsym:$off, $addr)>;
188 def : Pat<(i64 (zextloadi8 (regPlusImm texternalsym:$off, I32:$addr))),
189 (LOAD8_U_I64 texternalsym:$off, $addr)>;
190 def : Pat<(i64 (sextloadi16 (regPlusImm texternalsym:$off, I32:$addr))),
191 (LOAD16_S_I64 texternalsym:$off, $addr)>;
192 def : Pat<(i64 (zextloadi16 (regPlusImm texternalsym:$off, I32:$addr))),
193 (LOAD16_U_I64 texternalsym:$off, $addr)>;
194 def : Pat<(i64 (sextloadi32 (regPlusImm texternalsym:$off, I32:$addr))),
195 (LOAD32_S_I64 texternalsym:$off, $addr)>;
196 def : Pat<(i64 (zextloadi32 (regPlusImm texternalsym:$off, I32:$addr))),
197 (LOAD32_U_I64 texternalsym:$off, $addr)>;
255 def : Pat<(i32 (extloadi8 I32:$addr)), (LOAD8_U_I32 0, $addr)>;
256 def : Pat<(i32 (extloadi16 I32:$addr)), (LOAD16_U_I32 0, $addr)>;
257 def : Pat<(i64 (extloadi8 I32:$addr)), (LOAD8_U_I64 0, $addr)>;
258 def : Pat<(i64 (extloadi16 I32:$addr)), (LOAD16_U_I64 0, $addr)>;
259 def : Pat<(i64 (extloadi32 I32:$addr)), (LOAD32_U_I64 0, $addr)>;
262 def : Pat<(i32 (extloadi8 (regPlusImm imm:$off, I32:$addr))),
263 (LOAD8_U_I32 imm:$off, $addr)>;
264 def : Pat<(i32 (extloadi16 (regPlusImm imm:$off, I32:$addr))),
265 (LOAD16_U_I32 imm:$off, $addr)>;
266 def : Pat<(i64 (extloadi8 (regPlusImm imm:$off, I32:$addr))),
267 (LOAD8_U_I64 imm:$off, $addr)>;
268 def : Pat<(i64 (extloadi16 (regPlusImm imm:$off, I32:$addr))),
269 (LOAD16_U_I64 imm:$off, $addr)>;
270 def : Pat<(i64 (extloadi32 (regPlusImm imm:$off, I32:$addr))),
271 (LOAD32_U_I64 imm:$off, $addr)>;
272 def : Pat<(i32 (extloadi8 (regPlusImm tglobaladdr:$off, I32:$addr))),
273 (LOAD8_U_I32 tglobaladdr:$off, $addr)>;
274 def : Pat<(i32 (extloadi16 (regPlusImm tglobaladdr:$off, I32:$addr))),
275 (LOAD16_U_I32 tglobaladdr:$off, $addr)>;
276 def : Pat<(i64 (extloadi8 (regPlusImm tglobaladdr:$off, I32:$addr))),
277 (LOAD8_U_I64 tglobaladdr:$off, $addr)>;
278 def : Pat<(i64 (extloadi16 (regPlusImm tglobaladdr:$off, I32:$addr))),
279 (LOAD16_U_I64 tglobaladdr:$off, $addr)>;
280 def : Pat<(i64 (extloadi32 (regPlusImm tglobaladdr:$off, I32:$addr))),
281 (LOAD32_U_I64 tglobaladdr:$off, $addr)>;
282 def : Pat<(i32 (extloadi8 (regPlusImm texternalsym:$off, I32:$addr))),
283 (LOAD8_U_I32 texternalsym:$off, $addr)>;
284 def : Pat<(i32 (extloadi16 (regPlusImm texternalsym:$off, I32:$addr))),
285 (LOAD16_U_I32 texternalsym:$off, $addr)>;
286 def : Pat<(i64 (extloadi8 (regPlusImm texternalsym:$off, I32:$addr))),
287 (LOAD8_U_I64 texternalsym:$off, $addr)>;
288 def : Pat<(i64 (extloadi16 (regPlusImm texternalsym:$off, I32:$addr))),
289 (LOAD16_U_I64 texternalsym:$off, $addr)>;
290 def : Pat<(i64 (extloadi32 (regPlusImm texternalsym:$off, I32:$addr))),
291 (LOAD32_U_I64 texternalsym:$off, $addr)>;
328 def STORE_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr, I32:$val), [],
329 "i32.store\t$dst, ${off}(${addr}), $val">;
330 def STORE_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr, I64:$val), [],
331 "i64.store\t$dst, ${off}(${addr}), $val">;
332 def STORE_F32 : I<(outs F32:$dst), (ins i32imm:$off, I32:$addr, F32:$val), [],
333 "f32.store\t$dst, ${off}(${addr}), $val">;
334 def STORE_F64 : I<(outs F64:$dst), (ins i32imm:$off, I32:$addr, F64:$val), [],
335 "f64.store\t$dst, ${off}(${addr}), $val">;
340 def : Pat<(store I32:$val, I32:$addr), (STORE_I32 0, I32:$addr, I32:$val)>;
341 def : Pat<(store I64:$val, I32:$addr), (STORE_I64 0, I32:$addr, I64:$val)>;
342 def : Pat<(store F32:$val, I32:$addr), (STORE_F32 0, I32:$addr, F32:$val)>;
343 def : Pat<(store F64:$val, I32:$addr), (STORE_F64 0, I32:$addr, F64:$val)>;
346 def : Pat<(store I32:$val, (regPlusImm imm:$off, I32:$addr)),
347 (STORE_I32 imm:$off, I32:$addr, I32:$val)>;
348 def : Pat<(store I64:$val, (regPlusImm imm:$off, I32:$addr)),
349 (STORE_I64 imm:$off, I32:$addr, I64:$val)>;
350 def : Pat<(store F32:$val, (regPlusImm imm:$off, I32:$addr)),
351 (STORE_F32 imm:$off, I32:$addr, F32:$val)>;
352 def : Pat<(store F64:$val, (regPlusImm imm:$off, I32:$addr)),
353 (STORE_F64 imm:$off, I32:$addr, F64:$val)>;
354 def : Pat<(store I32:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
355 (STORE_I32 tglobaladdr:$off, I32:$addr, I32:$val)>;
356 def : Pat<(store I64:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
357 (STORE_I64 tglobaladdr:$off, I32:$addr, I64:$val)>;
358 def : Pat<(store F32:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
359 (STORE_F32 tglobaladdr:$off, I32:$addr, F32:$val)>;
360 def : Pat<(store F64:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
361 (STORE_F64 tglobaladdr:$off, I32:$addr, F64:$val)>;
362 def : Pat<(store I32:$val, (regPlusImm texternalsym:$off, I32:$addr)),
363 (STORE_I32 texternalsym:$off, I32:$addr, I32:$val)>;
364 def : Pat<(store I64:$val, (regPlusImm texternalsym:$off, I32:$addr)),
365 (STORE_I64 texternalsym:$off, I32:$addr, I64:$val)>;
366 def : Pat<(store F32:$val, (regPlusImm texternalsym:$off, I32:$addr)),
367 (STORE_F32 texternalsym:$off, I32:$addr, F32:$val)>;
368 def : Pat<(store F64:$val, (regPlusImm texternalsym:$off, I32:$addr)),
369 (STORE_F64 texternalsym:$off, I32:$addr, F64:$val)>;
400 def STORE8_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr, I32:$val), [],
401 "i32.store8\t$dst, ${off}(${addr}), $val">;
402 def STORE16_I32 : I<(outs I32:$dst), (ins i32imm:$off, I32:$addr, I32:$val), [],
403 "i32.store16\t$dst, ${off}(${addr}), $val">;
404 def STORE8_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr, I64:$val), [],
405 "i64.store8\t$dst, ${off}(${addr}), $val">;
406 def STORE16_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr, I64:$val), [],
407 "i64.store16\t$dst, ${off}(${addr}), $val">;
408 def STORE32_I64 : I<(outs I64:$dst), (ins i32imm:$off, I32:$addr, I64:$val), [],
409 "i64.store32\t$dst, ${off}(${addr}), $val">;
414 def : Pat<(truncstorei8 I32:$val, I32:$addr),
415 (STORE8_I32 0, I32:$addr, I32:$val)>;
416 def : Pat<(truncstorei16 I32:$val, I32:$addr),
417 (STORE16_I32 0, I32:$addr, I32:$val)>;
418 def : Pat<(truncstorei8 I64:$val, I32:$addr),
419 (STORE8_I64 0, I32:$addr, I64:$val)>;
420 def : Pat<(truncstorei16 I64:$val, I32:$addr),
421 (STORE16_I64 0, I32:$addr, I64:$val)>;
422 def : Pat<(truncstorei32 I64:$val, I32:$addr),
423 (STORE32_I64 0, I32:$addr, I64:$val)>;
426 def : Pat<(truncstorei8 I32:$val, (regPlusImm imm:$off, I32:$addr)),
427 (STORE8_I32 imm:$off, I32:$addr, I32:$val)>;
428 def : Pat<(truncstorei16 I32:$val, (regPlusImm imm:$off, I32:$addr)),
429 (STORE16_I32 imm:$off, I32:$addr, I32:$val)>;
430 def : Pat<(truncstorei8 I64:$val, (regPlusImm imm:$off, I32:$addr)),
431 (STORE8_I64 imm:$off, I32:$addr, I64:$val)>;
432 def : Pat<(truncstorei16 I64:$val, (regPlusImm imm:$off, I32:$addr)),
433 (STORE16_I64 imm:$off, I32:$addr, I64:$val)>;
434 def : Pat<(truncstorei32 I64:$val, (regPlusImm imm:$off, I32:$addr)),
435 (STORE32_I64 imm:$off, I32:$addr, I64:$val)>;
436 def : Pat<(truncstorei8 I32:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
437 (STORE8_I32 tglobaladdr:$off, I32:$addr, I32:$val)>;
438 def : Pat<(truncstorei16 I32:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
439 (STORE16_I32 tglobaladdr:$off, I32:$addr, I32:$val)>;
440 def : Pat<(truncstorei8 I64:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
441 (STORE8_I64 tglobaladdr:$off, I32:$addr, I64:$val)>;
442 def : Pat<(truncstorei16 I64:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
443 (STORE16_I64 tglobaladdr:$off, I32:$addr, I64:$val)>;
444 def : Pat<(truncstorei32 I64:$val, (regPlusImm tglobaladdr:$off, I32:$addr)),
445 (STORE32_I64 tglobaladdr:$off, I32:$addr, I64:$val)>;
446 def : Pat<(truncstorei8 I32:$val, (regPlusImm texternalsym:$off, I32:$addr)),
447 (STORE8_I32 texternalsym:$off, I32:$addr, I32:$val)>;
448 def : Pat<(truncstorei16 I32:$val, (regPlusImm texternalsym:$off, I32:$addr)),
449 (STORE16_I32 texternalsym:$off, I32:$addr, I32:$val)>;
450 def : Pat<(truncstorei8 I64:$val, (regPlusImm texternalsym:$off, I32:$addr)),
451 (STORE8_I64 texternalsym:$off, I32:$addr, I64:$val)>;
452 def : Pat<(truncstorei16 I64:$val, (regPlusImm texternalsym:$off, I32:$addr)),
453 (STORE16_I64 texternalsym:$off, I32:$addr, I64:$val)>;
454 def : Pat<(truncstorei32 I64:$val, (regPlusImm texternalsym:$off, I32:$addr)),
455 (STORE32_I64 texternalsym:$off, I32:$addr, I64:$val)>;