Lines Matching refs:src

16 defm I32_WRAP_I64 : I<(outs I32:$dst), (ins I64:$src), (outs), (ins),
17 [(set I32:$dst, (trunc I64:$src))],
18 "i32.wrap_i64\t$dst, $src", "i32.wrap_i64", 0xa7>;
20 defm I64_EXTEND_S_I32 : I<(outs I64:$dst), (ins I32:$src), (outs), (ins),
21 [(set I64:$dst, (sext I32:$src))],
22 "i64.extend_i32_s\t$dst, $src", "i64.extend_i32_s",
24 defm I64_EXTEND_U_I32 : I<(outs I64:$dst), (ins I32:$src), (outs), (ins),
25 [(set I64:$dst, (zext I32:$src))],
26 "i64.extend_i32_u\t$dst, $src", "i64.extend_i32_u",
30 defm I32_EXTEND8_S_I32 : I<(outs I32:$dst), (ins I32:$src), (outs), (ins),
31 [(set I32:$dst, (sext_inreg I32:$src, i8))],
32 "i32.extend8_s\t$dst, $src", "i32.extend8_s",
34 defm I32_EXTEND16_S_I32 : I<(outs I32:$dst), (ins I32:$src), (outs), (ins),
35 [(set I32:$dst, (sext_inreg I32:$src, i16))],
36 "i32.extend16_s\t$dst, $src", "i32.extend16_s",
38 defm I64_EXTEND8_S_I64 : I<(outs I64:$dst), (ins I64:$src), (outs), (ins),
39 [(set I64:$dst, (sext_inreg I64:$src, i8))],
40 "i64.extend8_s\t$dst, $src", "i64.extend8_s",
42 defm I64_EXTEND16_S_I64 : I<(outs I64:$dst), (ins I64:$src), (outs), (ins),
43 [(set I64:$dst, (sext_inreg I64:$src, i16))],
44 "i64.extend16_s\t$dst, $src", "i64.extend16_s",
46 defm I64_EXTEND32_S_I64 : I<(outs I64:$dst), (ins I64:$src), (outs), (ins),
47 [(set I64:$dst, (sext_inreg I64:$src, i32))],
48 "i64.extend32_s\t$dst, $src", "i64.extend32_s",
55 def : Pat<(i64 (anyext I32:$src)), (I64_EXTEND_U_I32 I32:$src)>;
59 defm I32_TRUNC_S_SAT_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
60 [(set I32:$dst, (fp_to_sint F32:$src))],
61 "i32.trunc_sat_f32_s\t$dst, $src",
64 defm I32_TRUNC_U_SAT_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
65 [(set I32:$dst, (fp_to_uint F32:$src))],
66 "i32.trunc_sat_f32_u\t$dst, $src",
69 defm I64_TRUNC_S_SAT_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
70 [(set I64:$dst, (fp_to_sint F32:$src))],
71 "i64.trunc_sat_f32_s\t$dst, $src",
74 defm I64_TRUNC_U_SAT_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
75 [(set I64:$dst, (fp_to_uint F32:$src))],
76 "i64.trunc_sat_f32_u\t$dst, $src",
79 defm I32_TRUNC_S_SAT_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
80 [(set I32:$dst, (fp_to_sint F64:$src))],
81 "i32.trunc_sat_f64_s\t$dst, $src",
84 defm I32_TRUNC_U_SAT_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
85 [(set I32:$dst, (fp_to_uint F64:$src))],
86 "i32.trunc_sat_f64_u\t$dst, $src",
89 defm I64_TRUNC_S_SAT_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
90 [(set I64:$dst, (fp_to_sint F64:$src))],
91 "i64.trunc_sat_f64_s\t$dst, $src",
94 defm I64_TRUNC_U_SAT_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
95 [(set I64:$dst, (fp_to_uint F64:$src))],
96 "i64.trunc_sat_f64_u\t$dst, $src",
101 def : Pat<(int_wasm_trunc_saturate_signed F32:$src),
102 (I32_TRUNC_S_SAT_F32 F32:$src)>;
103 def : Pat<(int_wasm_trunc_saturate_unsigned F32:$src),
104 (I32_TRUNC_U_SAT_F32 F32:$src)>;
105 def : Pat<(int_wasm_trunc_saturate_signed F64:$src),
106 (I32_TRUNC_S_SAT_F64 F64:$src)>;
107 def : Pat<(int_wasm_trunc_saturate_unsigned F64:$src),
108 (I32_TRUNC_U_SAT_F64 F64:$src)>;
109 def : Pat<(int_wasm_trunc_saturate_signed F32:$src),
110 (I64_TRUNC_S_SAT_F32 F32:$src)>;
111 def : Pat<(int_wasm_trunc_saturate_unsigned F32:$src),
112 (I64_TRUNC_U_SAT_F32 F32:$src)>;
113 def : Pat<(int_wasm_trunc_saturate_signed F64:$src),
114 (I64_TRUNC_S_SAT_F64 F64:$src)>;
115 def : Pat<(int_wasm_trunc_saturate_unsigned F64:$src),
116 (I64_TRUNC_U_SAT_F64 F64:$src)>;
121 defm FP_TO_SINT_I32_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
122 [(set I32:$dst, (fp_to_sint F32:$src))], "", "", 0>,
124 defm FP_TO_UINT_I32_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
125 [(set I32:$dst, (fp_to_uint F32:$src))], "", "", 0>,
127 defm FP_TO_SINT_I64_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
128 [(set I64:$dst, (fp_to_sint F32:$src))], "", "", 0>,
130 defm FP_TO_UINT_I64_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
131 [(set I64:$dst, (fp_to_uint F32:$src))], "", "", 0>,
133 defm FP_TO_SINT_I32_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
134 [(set I32:$dst, (fp_to_sint F64:$src))], "", "", 0>,
136 defm FP_TO_UINT_I32_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
137 [(set I32:$dst, (fp_to_uint F64:$src))], "", "", 0>,
139 defm FP_TO_SINT_I64_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
140 [(set I64:$dst, (fp_to_sint F64:$src))], "", "", 0>,
142 defm FP_TO_UINT_I64_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
143 [(set I64:$dst, (fp_to_uint F64:$src))], "", "", 0>,
149 defm I32_TRUNC_S_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
150 [], "i32.trunc_f32_s\t$dst, $src", "i32.trunc_f32_s",
152 defm I32_TRUNC_U_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
153 [], "i32.trunc_f32_u\t$dst, $src", "i32.trunc_f32_u",
155 defm I64_TRUNC_S_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
156 [], "i64.trunc_f32_s\t$dst, $src", "i64.trunc_f32_s",
158 defm I64_TRUNC_U_F32 : I<(outs I64:$dst), (ins F32:$src), (outs), (ins),
159 [], "i64.trunc_f32_u\t$dst, $src", "i64.trunc_f32_u",
161 defm I32_TRUNC_S_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
162 [], "i32.trunc_f64_s\t$dst, $src", "i32.trunc_f64_s",
164 defm I32_TRUNC_U_F64 : I<(outs I32:$dst), (ins F64:$src), (outs), (ins),
165 [], "i32.trunc_f64_u\t$dst, $src", "i32.trunc_f64_u",
167 defm I64_TRUNC_S_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
168 [], "i64.trunc_f64_s\t$dst, $src", "i64.trunc_f64_s",
170 defm I64_TRUNC_U_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
171 [], "i64.trunc_f64_u\t$dst, $src", "i64.trunc_f64_u",
175 defm F32_CONVERT_S_I32 : I<(outs F32:$dst), (ins I32:$src), (outs), (ins),
176 [(set F32:$dst, (sint_to_fp I32:$src))],
177 "f32.convert_i32_s\t$dst, $src", "f32.convert_i32_s",
179 defm F32_CONVERT_U_I32 : I<(outs F32:$dst), (ins I32:$src), (outs), (ins),
180 [(set F32:$dst, (uint_to_fp I32:$src))],
181 "f32.convert_i32_u\t$dst, $src", "f32.convert_i32_u",
183 defm F64_CONVERT_S_I32 : I<(outs F64:$dst), (ins I32:$src), (outs), (ins),
184 [(set F64:$dst, (sint_to_fp I32:$src))],
185 "f64.convert_i32_s\t$dst, $src", "f64.convert_i32_s",
187 defm F64_CONVERT_U_I32 : I<(outs F64:$dst), (ins I32:$src), (outs), (ins),
188 [(set F64:$dst, (uint_to_fp I32:$src))],
189 "f64.convert_i32_u\t$dst, $src", "f64.convert_i32_u",
191 defm F32_CONVERT_S_I64 : I<(outs F32:$dst), (ins I64:$src), (outs), (ins),
192 [(set F32:$dst, (sint_to_fp I64:$src))],
193 "f32.convert_i64_s\t$dst, $src", "f32.convert_i64_s",
195 defm F32_CONVERT_U_I64 : I<(outs F32:$dst), (ins I64:$src), (outs), (ins),
196 [(set F32:$dst, (uint_to_fp I64:$src))],
197 "f32.convert_i64_u\t$dst, $src", "f32.convert_i64_u",
199 defm F64_CONVERT_S_I64 : I<(outs F64:$dst), (ins I64:$src), (outs), (ins),
200 [(set F64:$dst, (sint_to_fp I64:$src))],
201 "f64.convert_i64_s\t$dst, $src", "f64.convert_i64_s",
203 defm F64_CONVERT_U_I64 : I<(outs F64:$dst), (ins I64:$src), (outs), (ins),
204 [(set F64:$dst, (uint_to_fp I64:$src))],
205 "f64.convert_i64_u\t$dst, $src", "f64.convert_i64_u",
208 defm F64_PROMOTE_F32 : I<(outs F64:$dst), (ins F32:$src), (outs), (ins),
209 [(set F64:$dst, (fpextend F32:$src))],
210 "f64.promote_f32\t$dst, $src", "f64.promote_f32",
212 defm F32_DEMOTE_F64 : I<(outs F32:$dst), (ins F64:$src), (outs), (ins),
213 [(set F32:$dst, (fpround F64:$src))],
214 "f32.demote_f64\t$dst, $src", "f32.demote_f64",
217 defm I32_REINTERPRET_F32 : I<(outs I32:$dst), (ins F32:$src), (outs), (ins),
218 [(set I32:$dst, (bitconvert F32:$src))],
219 "i32.reinterpret_f32\t$dst, $src",
221 defm F32_REINTERPRET_I32 : I<(outs F32:$dst), (ins I32:$src), (outs), (ins),
222 [(set F32:$dst, (bitconvert I32:$src))],
223 "f32.reinterpret_i32\t$dst, $src",
225 defm I64_REINTERPRET_F64 : I<(outs I64:$dst), (ins F64:$src), (outs), (ins),
226 [(set I64:$dst, (bitconvert F64:$src))],
227 "i64.reinterpret_f64\t$dst, $src",
229 defm F64_REINTERPRET_I64 : I<(outs F64:$dst), (ins I64:$src), (outs), (ins),
230 [(set F64:$dst, (bitconvert I64:$src))],
231 "f64.reinterpret_i64\t$dst, $src",