summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstSimplify/vector_gep.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstSimplify/vector_gep.ll')
-rw-r--r--test/Transforms/InstSimplify/vector_gep.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/vector_gep.ll b/test/Transforms/InstSimplify/vector_gep.ll
new file mode 100644
index 0000000..f65260e
--- /dev/null
+++ b/test/Transforms/InstSimplify/vector_gep.ll
@@ -0,0 +1,8 @@
+;RUN: opt -instsimplify %s -disable-output
+declare void @helper(<2 x i8*>)
+define void @test(<2 x i8*> %a) {
+ %A = getelementptr <2 x i8*> %a, <2 x i32> <i32 0, i32 0>
+ call void @helper(<2 x i8*> %A)
+ ret void
+}
+
OpenPOWER on IntegriCloud