aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/getelementptr_vec_idx4.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/getelementptr_vec_idx4.ll')
-rw-r--r--test/Assembler/getelementptr_vec_idx4.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Assembler/getelementptr_vec_idx4.ll b/test/Assembler/getelementptr_vec_idx4.ll
new file mode 100644
index 0000000..08fe434
--- /dev/null
+++ b/test/Assembler/getelementptr_vec_idx4.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+; CHECK: getelementptr vector index has a wrong number of elements
+
+global <2 x i32*> getelementptr (<4 x [3 x {i32, i32}]*> zeroinitializer, <2 x i32> <i32 1, i32 2>, <2 x i32> <i32 2, i32 3>, <2 x i32> <i32 1, i32 1>)