Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
13 lines
370 B
LLVM
13 lines
370 B
LLVM
; RUN: llc < %s -mtriple x86_64-gnu-linux | FileCheck %s
|
|
|
|
; @foo is a 2d array of i32s, ex.
|
|
; i32 foo [2][2]
|
|
@foo = internal global [2 x [2 x i32]] zeroinitializer, align 4
|
|
|
|
define void @bar() {
|
|
; access foo[1][1]
|
|
; CHECK: # foo+12
|
|
tail call void asm sideeffect "# ${0:c}", "i"(ptr getelementptr inbounds ([2 x [2 x i32]], ptr @foo, i64 0, i64 1, i64 1))
|
|
ret void
|
|
}
|