Lines Matching refs:src

15 defm I32_WRAP_I64 : I<(outs I32:$dst), (ins I64:$src), (outs), (ins),
16 [(set I32:$dst, (trunc I64:$src))],
17 "i32.wrap_i64\t$dst, $src", "i32.wrap_i64", 0xa7>;
19 defm I64_EXTEND_S_I32 : I<(outs I64:$dst), (ins I32:$src), (outs), (ins),
20 [(set I64:$dst, (sext I32:$src))],
21 "i64.extend_i32_s\t$dst, $src", "i64.extend_i32_s",
23 defm I64_EXTEND_U_I32 : I<(outs I64:$dst), (ins I32:$src), (outs), (ins),
24 [(set I64:$dst, (zext I32:$src))],
25 "i64.extend_i32_u\t$dst, $src", "i64.extend_i32_u",
29 defm I32_EXTEND8_S_I32 : I<(outs I32:$dst), (ins I32:$src), (outs), (ins),
30 [(set I32:$dst, (sext_inreg I32:$src, i8))],
31 "i32.extend8_s\t$dst, $src", "i32.extend8_s",
33 defm I32_EXTEND16_S_I32 : I<(outs I32:$dst), (ins I32:$src), (outs), (ins),
34 [(set I32:$dst, (sext_inreg I32:$src, i16))],
35 "i32.extend16_s\t$dst, $src", "i32.extend16_s",
37 defm I64_EXTEND8_S_I64 : I<(outs I64:$dst), (ins I64:$src), (outs), (ins),
38 [(set I64:$dst, (sext_inreg I64:$src, i8))],
39 "i64.extend8_s\t$dst, $src", "i64.extend8_s",
41 defm I64_EXTEND16_S_I64 : I<(outs I64:$dst), (ins I64:$src), (outs), (ins),
42 [(set I64:$dst, (sext_inreg I64:$src, i16))],
43 "i64.extend16_s\t$dst, $src", "i64.extend16_s",
45 defm I64_EXTEND32_S_I64 : I<(outs I64:$dst), (ins I64:$src), (outs), (ins),
46 [(set I64:$dst, (sext_inreg I64:$src, i32))],
47 "i64.extend32_s\t$dst, $src", "i64.extend32_s",
54 def : Pat<(i64 (anyext I32:$src)), (I64_EXTEND_U_I32 I32:$src)>;
58 defm I32_TRUNC_S_SAT_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
59 [(set I32:$dst, (fp_to_sint F32:$src))],
60 "i32.trunc_sat_f32_s\t$dst, $src",
63 defm I32_TRUNC_U_SAT_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
64 [(set I32:$dst, (fp_to_uint F32:$src))],
65 "i32.trunc_sat_f32_u\t$dst, $src",
68 defm I64_TRUNC_S_SAT_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
69 [(set I64:$dst, (fp_to_sint F32:$src))],
70 "i64.trunc_sat_f32_s\t$dst, $src",
73 defm I64_TRUNC_U_SAT_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
74 [(set I64:$dst, (fp_to_uint F32:$src))],
75 "i64.trunc_sat_f32_u\t$dst, $src",
78 defm I32_TRUNC_S_SAT_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
79 [(set I32:$dst, (fp_to_sint F64:$src))],
80 "i32.trunc_sat_f64_s\t$dst, $src",
83 defm I32_TRUNC_U_SAT_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
84 [(set I32:$dst, (fp_to_uint F64:$src))],
85 "i32.trunc_sat_f64_u\t$dst, $src",
88 defm I64_TRUNC_S_SAT_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
89 [(set I64:$dst, (fp_to_sint F64:$src))],
90 "i64.trunc_sat_f64_s\t$dst, $src",
93 defm I64_TRUNC_U_SAT_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
94 [(set I64:$dst, (fp_to_uint F64:$src))],
95 "i64.trunc_sat_f64_u\t$dst, $src",
100 def : Pat<(fp_to_sint_sat F32:$src, i32), (I32_TRUNC_S_SAT_F32 F32:$src)>;
101 def : Pat<(fp_to_uint_sat F32:$src, i32), (I32_TRUNC_U_SAT_F32 F32:$src)>;
102 def : Pat<(fp_to_sint_sat F64:$src, i32), (I32_TRUNC_S_SAT_F64 F64:$src)>;
103 def : Pat<(fp_to_uint_sat F64:$src, i32), (I32_TRUNC_U_SAT_F64 F64:$src)>;
104 def : Pat<(fp_to_sint_sat F32:$src, i64), (I64_TRUNC_S_SAT_F32 F32:$src)>;
105 def : Pat<(fp_to_uint_sat F32:$src, i64), (I64_TRUNC_U_SAT_F32 F32:$src)>;
106 def : Pat<(fp_to_sint_sat F64:$src, i64), (I64_TRUNC_S_SAT_F64 F64:$src)>;
107 def : Pat<(fp_to_uint_sat F64:$src, i64), (I64_TRUNC_U_SAT_F64 F64:$src)>;
112 defm FP_TO_SINT_I32_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
113 [(set I32:$dst, (fp_to_sint F32:$src))], "", "", 0>,
115 defm FP_TO_UINT_I32_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
116 [(set I32:$dst, (fp_to_uint F32:$src))], "", "", 0>,
118 defm FP_TO_SINT_I64_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
119 [(set I64:$dst, (fp_to_sint F32:$src))], "", "", 0>,
121 defm FP_TO_UINT_I64_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
122 [(set I64:$dst, (fp_to_uint F32:$src))], "", "", 0>,
124 defm FP_TO_SINT_I32_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
125 [(set I32:$dst, (fp_to_sint F64:$src))], "", "", 0>,
127 defm FP_TO_UINT_I32_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
128 [(set I32:$dst, (fp_to_uint F64:$src))], "", "", 0>,
130 defm FP_TO_SINT_I64_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
131 [(set I64:$dst, (fp_to_sint F64:$src))], "", "", 0>,
133 defm FP_TO_UINT_I64_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
134 [(set I64:$dst, (fp_to_uint F64:$src))], "", "", 0>,
140 defm I32_TRUNC_S_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
141 [], "i32.trunc_f32_s\t$dst, $src", "i32.trunc_f32_s",
143 defm I32_TRUNC_U_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
144 [], "i32.trunc_f32_u\t$dst, $src", "i32.trunc_f32_u",
146 defm I64_TRUNC_S_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
147 [], "i64.trunc_f32_s\t$dst, $src", "i64.trunc_f32_s",
149 defm I64_TRUNC_U_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
150 [], "i64.trunc_f32_u\t$dst, $src", "i64.trunc_f32_u",
152 defm I32_TRUNC_S_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
153 [], "i32.trunc_f64_s\t$dst, $src", "i32.trunc_f64_s",
155 defm I32_TRUNC_U_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
156 [], "i32.trunc_f64_u\t$dst, $src", "i32.trunc_f64_u",
158 defm I64_TRUNC_S_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
159 [], "i64.trunc_f64_s\t$dst, $src", "i64.trunc_f64_s",
161 defm I64_TRUNC_U_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
162 [], "i64.trunc_f64_u\t$dst, $src", "i64.trunc_f64_u",
166 def : Pat<(int_wasm_trunc_signed F32:$src),
167 (I32_TRUNC_S_F32 F32:$src)>;
168 def : Pat<(int_wasm_trunc_unsigned F32:$src),
169 (I32_TRUNC_U_F32 F32:$src)>;
170 def : Pat<(int_wasm_trunc_signed F64:$src),
171 (I32_TRUNC_S_F64 F64:$src)>;
172 def : Pat<(int_wasm_trunc_unsigned F64:$src),
173 (I32_TRUNC_U_F64 F64:$src)>;
174 def : Pat<(int_wasm_trunc_signed F32:$src),
175 (I64_TRUNC_S_F32 F32:$src)>;
176 def : Pat<(int_wasm_trunc_unsigned F32:$src),
177 (I64_TRUNC_U_F32 F32:$src)>;
178 def : Pat<(int_wasm_trunc_signed F64:$src),
179 (I64_TRUNC_S_F64 F64:$src)>;
180 def : Pat<(int_wasm_trunc_unsigned F64:$src),
181 (I64_TRUNC_U_F64 F64:$src)>;
183 defm F32_CONVERT_S_I32 : I<(outs F32:$dst), (ins I32:$src), (outs), (ins),
184 [(set F32:$dst, (sint_to_fp I32:$src))],
185 "f32.convert_i32_s\t$dst, $src", "f32.convert_i32_s",
187 defm F32_CONVERT_U_I32 : I<(outs F32:$dst), (ins I32:$src), (outs), (ins),
188 [(set F32:$dst, (uint_to_fp I32:$src))],
189 "f32.convert_i32_u\t$dst, $src", "f32.convert_i32_u",
191 defm F64_CONVERT_S_I32 : I<(outs F64:$dst), (ins I32:$src), (outs), (ins),
192 [(set F64:$dst, (sint_to_fp I32:$src))],
193 "f64.convert_i32_s\t$dst, $src", "f64.convert_i32_s",
195 defm F64_CONVERT_U_I32 : I<(outs F64:$dst), (ins I32:$src), (outs), (ins),
196 [(set F64:$dst, (uint_to_fp I32:$src))],
197 "f64.convert_i32_u\t$dst, $src", "f64.convert_i32_u",
199 defm F32_CONVERT_S_I64 : I<(outs F32:$dst), (ins I64:$src), (outs), (ins),
200 [(set F32:$dst, (sint_to_fp I64:$src))],
201 "f32.convert_i64_s\t$dst, $src", "f32.convert_i64_s",
203 defm F32_CONVERT_U_I64 : I<(outs F32:$dst), (ins I64:$src), (outs), (ins),
204 [(set F32:$dst, (uint_to_fp I64:$src))],
205 "f32.convert_i64_u\t$dst, $src", "f32.convert_i64_u",
207 defm F64_CONVERT_S_I64 : I<(outs F64:$dst), (ins I64:$src), (outs), (ins),
208 [(set F64:$dst, (sint_to_fp I64:$src))],
209 "f64.convert_i64_s\t$dst, $src", "f64.convert_i64_s",
211 defm F64_CONVERT_U_I64 : I<(outs F64:$dst), (ins I64:$src), (outs), (ins),
212 [(set F64:$dst, (uint_to_fp I64:$src))],
213 "f64.convert_i64_u\t$dst, $src", "f64.convert_i64_u",
216 defm F64_PROMOTE_F32 : I<(outs F64:$dst), (ins F32:$src), (outs), (ins),
217 [(set F64:$dst, (fpextend F32:$src))],
218 "f64.promote_f32\t$dst, $src", "f64.promote_f32",
220 defm F32_DEMOTE_F64 : I<(outs F32:$dst), (ins F64:$src), (outs), (ins),
221 [(set F32:$dst, (fpround F64:$src))],
222 "f32.demote_f64\t$dst, $src", "f32.demote_f64",
225 defm I32_REINTERPRET_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
226 [(set I32:$dst, (bitconvert F32:$src))],
227 "i32.reinterpret_f32\t$dst, $src",
229 defm F32_REINTERPRET_I32 : I<(outs F32:$dst), (ins I32:$src), (outs), (ins),
230 [(set F32:$dst, (bitconvert I32:$src))],
231 "f32.reinterpret_i32\t$dst, $src",
233 defm I64_REINTERPRET_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
234 [(set I64:$dst, (bitconvert F64:$src))],
235 "i64.reinterpret_f64\t$dst, $src",
237 defm F64_REINTERPRET_I64 : I<(outs F64:$dst), (ins I64:$src), (outs), (ins),
238 [(set F64:$dst, (bitconvert I64:$src))],
239 "f64.reinterpret_i64\t$dst, $src",