summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/negative-subscript.ll
blob: f5dac9c5db15a4e13b78135e3ec4f8ae7f0da69b (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -mtriple=i686--
; rdar://6559995

@a = external global [255 x i8*], align 32

define i32 @main() nounwind {
entry:
	store i8* bitcast (i8** getelementptr ([255 x i8*], [255 x i8*]* @a, i32 0, i32 -2147483624) to i8*), i8** getelementptr ([255 x i8*], [255 x i8*]* @a, i32 0, i32 16), align 32
	ret i32 0
}
OpenPOWER on IntegriCloud