Skip to content
Snippets Groups Projects
Commit a259b26c authored by Evgeniy Stepanov's avatar Evgeniy Stepanov
Browse files

A test for r172535.

llvm-svn: 172614
parent 7f460320
No related branches found
No related tags found
No related merge requests found
...@@ -162,6 +162,11 @@ TEST(InstructionsTest, VectorGep) { ...@@ -162,6 +162,11 @@ TEST(InstructionsTest, VectorGep) {
ICmpInst *ICmp1 = new ICmpInst(ICmpInst::ICMP_ULT, PtrVecA, PtrVecB); ICmpInst *ICmp1 = new ICmpInst(ICmpInst::ICMP_ULT, PtrVecA, PtrVecB);
EXPECT_NE(ICmp0, ICmp1); // suppress warning. EXPECT_NE(ICmp0, ICmp1); // suppress warning.
BasicBlock* BB0 = BasicBlock::Create(C);
// Test InsertAtEnd ICmpInst constructor.
ICmpInst *ICmp2 = new ICmpInst(*BB0, ICmpInst::ICMP_SGE, PtrVecA, PtrVecB);
EXPECT_NE(ICmp0, ICmp2); // suppress warning.
GetElementPtrInst *Gep0 = GetElementPtrInst::Create(PtrVecA, C2xi32a); GetElementPtrInst *Gep0 = GetElementPtrInst::Create(PtrVecA, C2xi32a);
GetElementPtrInst *Gep1 = GetElementPtrInst::Create(PtrVecA, C2xi32b); GetElementPtrInst *Gep1 = GetElementPtrInst::Create(PtrVecA, C2xi32b);
GetElementPtrInst *Gep2 = GetElementPtrInst::Create(PtrVecB, C2xi32a); GetElementPtrInst *Gep2 = GetElementPtrInst::Create(PtrVecB, C2xi32a);
...@@ -223,6 +228,9 @@ TEST(InstructionsTest, VectorGep) { ...@@ -223,6 +228,9 @@ TEST(InstructionsTest, VectorGep) {
delete Gep2; delete Gep2;
delete Gep3; delete Gep3;
ICmp2->eraseFromParent();
delete BB0;
delete ICmp0; delete ICmp0;
delete ICmp1; delete ICmp1;
delete PtrVecA; delete PtrVecA;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment