blob: 767c817cc62997553da5f5f1fd0de972f6a9330c [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
Elena Demikhovsky37a4da82015-07-09 07:42:48 +00003; Test that a vector GEP may be used with a scalar base, the result is a vector of pointers
Duncan Sandse6beec62012-11-13 12:59:33 +00004
Elena Demikhovsky37a4da82015-07-09 07:42:48 +00005; CHECK: '%w' defined with type '<2 x <4 x i32>*>'
Duncan Sandse6beec62012-11-13 12:59:33 +00006
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}