llvm.org GIT mirror llvm / 4802b9d
A test for r172535. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172614 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 6 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
161161 ICmpInst *ICmp1 = new ICmpInst(ICmpInst::ICMP_ULT, PtrVecA, PtrVecB);
162162 EXPECT_NE(ICmp0, ICmp1); // suppress warning.
163163
164 BasicBlock* BB0 = BasicBlock::Create(C);
165 // Test InsertAtEnd ICmpInst constructor.
166 ICmpInst *ICmp2 = new ICmpInst(*BB0, ICmpInst::ICMP_SGE, PtrVecA, PtrVecB);
167 EXPECT_NE(ICmp0, ICmp2); // suppress warning.
168
164169 GetElementPtrInst *Gep0 = GetElementPtrInst::Create(PtrVecA, C2xi32a);
165170 GetElementPtrInst *Gep1 = GetElementPtrInst::Create(PtrVecA, C2xi32b);
166171 GetElementPtrInst *Gep2 = GetElementPtrInst::Create(PtrVecB, C2xi32a);
221226 delete Gep1;
222227 delete Gep2;
223228 delete Gep3;
229
230 ICmp2->eraseFromParent();
231 delete BB0;
224232
225233 delete ICmp0;
226234 delete ICmp1;