blob: 67029698bfc52382ae994d3c3fbe3ae0eaeddacb [file] [log] [blame]
Michael Kuperstein88f15ee2016-12-21 18:29:47 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3@G = global [4 x i32] zeroinitializer
4
5; CHECK-LABEL: @foo
Haicheng Wu234eaba2017-12-04 19:56:33 +00006; CHECK: ret <4 x i32*> getelementptr inbounds ([4 x i32], [4 x i32]* @G, <4 x i32> zeroinitializer, <4 x i32> <i32 0, i32 1, i32 2, i32 3>)
Michael Kuperstein88f15ee2016-12-21 18:29:47 +00007define <4 x i32*> @foo() {
8 ret <4 x i32*> getelementptr ([4 x i32], [4 x i32]* @G, i32 0, <4 x i32> <i32 0, i32 1, i32 2, i32 3>)
9}