blob: ac94459e23d4b6833e32d69090098ad0bcd880a7 [file] [log] [blame]
Duncan Sandse6beec62012-11-13 12:59:33 +00001; RUN: not llvm-as < %s >/dev/null 2> %t
2; RUN: FileCheck %s < %t
3; Test that vector indices have the same number of elements as the pointer.
4
5; CHECK: getelementptr index type missmatch
6
7define <4 x i32> @test(<4 x i32>* %a) {
David Blaikie79e6c742015-02-27 19:29:02 +00008 %w = getelementptr <4 x i32>, <4 x i32>* %a, <2 x i32> <i32 5, i32 9>
Duncan Sandse6beec62012-11-13 12:59:33 +00009 ret i32 %w
10}