Lines Matching full:se
63 ScalarEvolution SE = buildSE(*F); in TEST_F() local
65 const SCEV *S0 = SE.getSCEV(V0); in TEST_F()
66 const SCEV *S1 = SE.getSCEV(V1); in TEST_F()
67 const SCEV *S2 = SE.getSCEV(V2); in TEST_F()
69 const SCEV *P0 = SE.getAddExpr(S0, S0); in TEST_F()
70 const SCEV *P1 = SE.getAddExpr(S1, S1); in TEST_F()
71 const SCEV *P2 = SE.getAddExpr(S2, S2); in TEST_F()
108 ScalarEvolution SE = buildSE(*F); in TEST_F() local
117 A.push_back(SE.getSCEV(&*AI++)); in TEST_F()
118 A.push_back(SE.getSCEV(&*AI++)); in TEST_F()
119 A.push_back(SE.getSCEV(&*AI++)); in TEST_F()
120 A.push_back(SE.getSCEV(&*AI++)); in TEST_F()
121 A.push_back(SE.getSCEV(&*AI++)); in TEST_F()
122 const SCEV *A_rec = SE.getAddRecExpr(A, &L, SCEV::FlagAnyWrap); in TEST_F()
125 B.push_back(SE.getSCEV(&*AI++)); in TEST_F()
126 B.push_back(SE.getSCEV(&*AI++)); in TEST_F()
127 B.push_back(SE.getSCEV(&*AI++)); in TEST_F()
128 B.push_back(SE.getSCEV(&*AI++)); in TEST_F()
129 B.push_back(SE.getSCEV(&*AI++)); in TEST_F()
130 const SCEV *B_rec = SE.getAddRecExpr(B, &L, SCEV::FlagAnyWrap); in TEST_F()
149 dyn_cast<SCEVAddRecExpr>(SE.getMulExpr(A_rec, B_rec)); in TEST_F()
154 Sum.push_back(SE.getMulExpr(A[0], B[0])); in TEST_F()
155 EXPECT_EQ(Product->getOperand(0), SE.getAddExpr(Sum)); in TEST_F()
161 Sum.push_back(SE.getMulExpr(A[1], B[0])); in TEST_F()
162 Sum.push_back(SE.getMulExpr(A[0], B[1])); in TEST_F()
163 Sum.push_back(SE.getMulExpr(A[1], B[1])); in TEST_F()
164 EXPECT_EQ(Product->getOperand(1), SE.getAddExpr(Sum)); in TEST_F()
167 Sum.push_back(SE.getMulExpr(A[2], B[0])); in TEST_F()
168 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F()
169 Sum.push_back(SE.getMulExpr(A[0], B[2])); in TEST_F()
170 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F()
171 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F()
172 Sum.push_back(SE.getMulExpr(A[2], B[2])); in TEST_F()
173 EXPECT_EQ(Product->getOperand(2), SE.getAddExpr(Sum)); in TEST_F()
176 Sum.push_back(SE.getMulExpr(A[3], B[0])); in TEST_F()
177 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[2], B[1])); in TEST_F()
178 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[1], B[2])); in TEST_F()
179 Sum.push_back(SE.getMulExpr(A[0], B[3])); in TEST_F()
180 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[3], B[1])); in TEST_F()
181 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 6), A[2], B[2])); in TEST_F()
182 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[1], B[3])); in TEST_F()
183 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[3], B[2])); in TEST_F()
184 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[2], B[3])); in TEST_F()
185 Sum.push_back(SE.getMulExpr(A[3], B[3])); in TEST_F()
186 EXPECT_EQ(Product->getOperand(3), SE.getAddExpr(Sum)); in TEST_F()
189 Sum.push_back(SE.getMulExpr(A[4], B[0])); in TEST_F()
190 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 4), A[3], B[1])); in TEST_F()
191 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 6), A[2], B[2])); in TEST_F()
192 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 4), A[1], B[3])); in TEST_F()
193 Sum.push_back(SE.getMulExpr(A[0], B[4])); in TEST_F()
194 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 4), A[4], B[1])); in TEST_F()
195 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 12), A[3], B[2])); in TEST_F()
196 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 12), A[2], B[3])); in TEST_F()
197 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 4), A[1], B[4])); in TEST_F()
198 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 6), A[4], B[2])); in TEST_F()
199 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 12), A[3], B[3])); in TEST_F()
200 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 6), A[2], B[4])); in TEST_F()
201 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 4), A[4], B[3])); in TEST_F()
202 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 4), A[3], B[4])); in TEST_F()
203 Sum.push_back(SE.getMulExpr(A[4], B[4])); in TEST_F()
204 EXPECT_EQ(Product->getOperand(4), SE.getAddExpr(Sum)); in TEST_F()
207 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 5), A[4], B[1])); in TEST_F()
208 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 10), A[3], B[2])); in TEST_F()
209 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 10), A[2], B[3])); in TEST_F()
210 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 5), A[1], B[4])); in TEST_F()
211 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 20), A[4], B[2])); in TEST_F()
212 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 30), A[3], B[3])); in TEST_F()
213 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 20), A[2], B[4])); in TEST_F()
214 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 30), A[4], B[3])); in TEST_F()
215 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 30), A[3], B[4])); in TEST_F()
216 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 20), A[4], B[4])); in TEST_F()
217 EXPECT_EQ(Product->getOperand(5), SE.getAddExpr(Sum)); in TEST_F()
220 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 15), A[4], B[2])); in TEST_F()
221 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 20), A[3], B[3])); in TEST_F()
222 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 15), A[2], B[4])); in TEST_F()
223 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 60), A[4], B[3])); in TEST_F()
224 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 60), A[3], B[4])); in TEST_F()
225 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 90), A[4], B[4])); in TEST_F()
226 EXPECT_EQ(Product->getOperand(6), SE.getAddExpr(Sum)); in TEST_F()
229 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 35), A[4], B[3])); in TEST_F()
230 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 35), A[3], B[4])); in TEST_F()
231 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 140), A[4], B[4])); in TEST_F()
232 EXPECT_EQ(Product->getOperand(7), SE.getAddExpr(Sum)); in TEST_F()
236 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 70), A[4], B[4])); in TEST_F()
237 EXPECT_EQ(Product->getOperand(8), SE.getAddExpr(Sum)); in TEST_F()
255 ScalarEvolution SE = buildSE(*F); in TEST_F() local
256 auto *S1 = SE.getSCEV(PN); in TEST_F()
257 auto *S2 = SE.getSCEV(PN); in TEST_F()
258 auto *ZeroConst = SE.getConstant(Ty, 0); in TEST_F()