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

10 lines
256 B
LLVM

; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | not grep non_lazy_ptr
@x = weak hidden global i32 0 ; <ptr> [#uses=1]
define i32 @t() nounwind readonly {
entry:
%0 = load i32, ptr @x, align 4 ; <i32> [#uses=1]
ret i32 %0
}