aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/MergeFunc/vector-GEP-crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/MergeFunc/vector-GEP-crash.ll')
-rw-r--r--test/Transforms/MergeFunc/vector-GEP-crash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/MergeFunc/vector-GEP-crash.ll b/test/Transforms/MergeFunc/vector-GEP-crash.ll
new file mode 100644
index 0000000..a1eefa0
--- /dev/null
+++ b/test/Transforms/MergeFunc/vector-GEP-crash.ll
@@ -0,0 +1,12 @@
+; RUN: opt -mergefunc -disable-output < %s
+; This used to cause a crash when compairing the GEPs
+
+define void @foo(<2 x i64*>) {
+ %tmp = getelementptr <2 x i64*> %0, <2 x i64> <i64 0, i64 0>
+ ret void
+}
+
+define void @bar(<2 x i64*>) {
+ %tmp = getelementptr <2 x i64*> %0, <2 x i64> <i64 0, i64 0>
+ ret void
+}