• Home
  • Raw
  • Download

Lines Matching refs:LLT

54       L.setAction({Op, 0, LLT::scalar(Size)}, Legal);  in TEST()
63 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(8)}}), in TEST()
64 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
65 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(16)}}), in TEST()
66 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
67 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(32)}}), in TEST()
68 LegalizeActionStep(Legal, 0, LLT{})); in TEST()
69 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(64)}}), in TEST()
70 LegalizeActionStep(Legal, 0, LLT{})); in TEST()
73 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(128)}}), in TEST()
74 LegalizeActionStep(NarrowScalar, 0, LLT::scalar(64))); in TEST()
76 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(1)}}), in TEST()
77 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
78 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(31)}}), in TEST()
79 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
80 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(33)}}), in TEST()
81 LegalizeActionStep(WidenScalar, 0, LLT::scalar(64))); in TEST()
82 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(63)}}), in TEST()
83 LegalizeActionStep(WidenScalar, 0, LLT::scalar(64))); in TEST()
84 EXPECT_EQ(L.getAction({opcode, {LLT::scalar(65)}}), in TEST()
85 LegalizeActionStep(NarrowScalar, 0, LLT::scalar(64))); in TEST()
93 L.setAction({G_ADD, LLT::vector(8, 8)}, Legal); in TEST()
94 L.setAction({G_ADD, LLT::vector(16, 8)}, Legal); in TEST()
95 L.setAction({G_ADD, LLT::vector(4, 16)}, Legal); in TEST()
96 L.setAction({G_ADD, LLT::vector(8, 16)}, Legal); in TEST()
97 L.setAction({G_ADD, LLT::vector(2, 32)}, Legal); in TEST()
98 L.setAction({G_ADD, LLT::vector(4, 32)}, Legal); in TEST()
103 L.setAction({G_ADD, 0, LLT::scalar(32)}, Legal); in TEST()
109 EXPECT_EQ(L.getAction({G_ADD, {LLT::vector(8, 8)}}), in TEST()
110 LegalizeActionStep(Legal, 0, LLT{})); in TEST()
111 EXPECT_EQ(L.getAction({G_ADD, {LLT::vector(8, 7)}}), in TEST()
112 LegalizeActionStep(WidenScalar, 0, LLT::vector(8, 8))); in TEST()
113 EXPECT_EQ(L.getAction({G_ADD, {LLT::vector(2, 8)}}), in TEST()
114 LegalizeActionStep(MoreElements, 0, LLT::vector(8, 8))); in TEST()
115 EXPECT_EQ(L.getAction({G_ADD, {LLT::vector(8, 32)}}), in TEST()
116 LegalizeActionStep(FewerElements, 0, LLT::vector(4, 32))); in TEST()
118 EXPECT_EQ(L.getAction({G_ADD, {LLT::vector(3, 3)}}), in TEST()
119 LegalizeActionStep(WidenScalar, 0, LLT::vector(3, 8))); in TEST()
120 EXPECT_EQ(L.getAction({G_ADD, {LLT::vector(3, 8)}}), in TEST()
121 LegalizeActionStep(MoreElements, 0, LLT::vector(8, 8))); in TEST()
127 LLT p0 = LLT::pointer(0, 64); in TEST()
128 LLT s64 = LLT::scalar(64); in TEST()
141 LegalizeActionStep(Legal, 0, LLT{})); in TEST()
145 L.getAction({G_PTRTOINT, {LLT::scalar(65), s64}}), in TEST()
148 L.getAction({G_PTRTOINT, {s64, LLT::pointer(0, 32)}}), in TEST()
149 LegalizeActionStep(Unsupported, 1, LLT::pointer(0, 32))); in TEST()
155 LLT s32 = LLT::scalar(32); in TEST()
156 LLT s64 = LLT::scalar(64); in TEST()
165 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(16)}}), in TEST()
166 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
167 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(32)}}), in TEST()
168 LegalizeActionStep(Lower, 0, LLT::scalar(32))); in TEST()
175 L.setAction({G_UREM, 0, LLT::scalar(Size)}, Legal); in TEST()
183 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(Size)}}), in TEST()
184 LegalizeActionStep(Legal, 0, LLT{})); in TEST()
186 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(2)}}), in TEST()
187 LegalizeActionStep(WidenScalar, 0, LLT::scalar(8))); in TEST()
188 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(7)}}), in TEST()
189 LegalizeActionStep(WidenScalar, 0, LLT::scalar(8))); in TEST()
190 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(9)}}), in TEST()
191 LegalizeActionStep(WidenScalar, 0, LLT::scalar(16))); in TEST()
192 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(17)}}), in TEST()
193 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
194 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(31)}}), in TEST()
195 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
196 EXPECT_EQ(L.getAction({G_UREM, {LLT::scalar(33)}}), in TEST()
197 LegalizeActionStep(Unsupported, 0, LLT::scalar(33))); in TEST()
210 const LLT s5 = LLT::scalar(5); in TEST()
211 const LLT s8 = LLT::scalar(8); in TEST()
212 const LLT s16 = LLT::scalar(16); in TEST()
213 const LLT s32 = LLT::scalar(32); in TEST()
214 const LLT s33 = LLT::scalar(33); in TEST()
215 const LLT s64 = LLT::scalar(64); in TEST()
217 const LLT v2s5 = LLT::vector(2, 5); in TEST()
218 const LLT v2s8 = LLT::vector(2, 8); in TEST()
219 const LLT v2s16 = LLT::vector(2, 16); in TEST()
220 const LLT v2s32 = LLT::vector(2, 32); in TEST()
221 const LLT v3s32 = LLT::vector(3, 32); in TEST()
222 const LLT v4s32 = LLT::vector(4, 32); in TEST()
223 const LLT v2s33 = LLT::vector(2, 33); in TEST()
224 const LLT v2s64 = LLT::vector(2, 64); in TEST()
226 const LLT p0 = LLT::pointer(0, 32); in TEST()
227 const LLT v3p0 = LLT::vector(3, p0); in TEST()
228 const LLT v4p0 = LLT::vector(4, p0); in TEST()
238 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_IMPLICIT_DEF, {s32})); in TEST()
239 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_IMPLICIT_DEF, {v2s32})); in TEST()
294 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_OR, {v2s16})); in TEST()
307 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_AND, {v2s32})); in TEST()
323 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_XOR, {v2s64})); in TEST()
324 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_XOR, {v2s8})); in TEST()
356 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_AND, {v2s5})); in TEST()
357 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_AND, {v2s33})); in TEST()
364 const LLT s32 = LLT::scalar(32); in TEST()
365 const LLT p0 = LLT::pointer(0, 64); in TEST()
374 EXPECT_ACTION(Legal, 0, LLT(), in TEST()
378 EXPECT_ACTION(Unsupported, 0, LLT(), in TEST()
382 EXPECT_ACTION(Unsupported, 0, LLT(), in TEST()
399 EXPECT_ACTION(Legal, 0, LLT(), in TEST()
403 EXPECT_ACTION(Unsupported, 0, LLT(), in TEST()
413 const LLT S1 = LLT::scalar(1); in TEST()
414 const LLT P0 = LLT::pointer(0, 32); in TEST()