llvm-project/llvm/test/CodeGen/PowerPC/inline-asm-multilevel-gep.ll
Kai Nacke 427fb35192 [PPC] Opaque pointer migration, part 1.
The LIT test cases were migrated with the script provided by
Nikita Popov. Due to the size of the change it is split into
several parts.

Reviewed By: nemanja, amyk, nikic, PowerPC

Differential Revision: https://reviews.llvm.org/D135470
2022-10-11 17:24:06 +00:00

13 lines
361 B
LLVM

; RUN: llc < %s -mtriple ppc32-- | 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
}