blob: 12160574d4e5a39ed89d6d11a2004288b6401b6d [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 i32*>
Duncan Sandse6beec62012-11-13 12:59:33 +00006
7define i32 @test(i32* %a) {
David Blaikie79e6c742015-02-27 19:29:02 +00008 %w = getelementptr i32, i32* %a, <2 x i32> <i32 5, i32 9>
Duncan Sandse6beec62012-11-13 12:59:33 +00009 ret i32 %w
10}