Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
a259b26c
Commit
a259b26c
authored
12 years ago
by
Evgeniy Stepanov
Browse files
Options
Downloads
Patches
Plain Diff
A test for r172535.
llvm-svn: 172614
parent
7f460320
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/unittests/IR/InstructionsTest.cpp
+8
-0
8 additions, 0 deletions
llvm/unittests/IR/InstructionsTest.cpp
with
8 additions
and
0 deletions
llvm/unittests/IR/InstructionsTest.cpp
+
8
−
0
View file @
a259b26c
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment