Michael Kuperstein | 88f15ee | 2016-12-21 18:29:47 +0000 | [diff] [blame] | 1 | ; RUN: not llvm-as < %s 2>&1 | FileCheck %s |
2 | |||||
3 | @G = global [4 x [4 x i32]] zeroinitializer | ||||
4 | |||||
5 | ; CHECK: getelementptr vector index has a wrong number of elements | ||||
6 | define <4 x i32*> @foo() { | ||||
7 | ret <4 x i32*> getelementptr ([4 x [4 x i32]], [4 x [4 x i32]]* @G, i32 0, <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <8 x i32> zeroinitializer) | ||||
8 | } |