llvm-project/llvm/test/CodeGen/PowerPC/load-constant-addr.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

10 lines
317 B
LLVM

; Should fold the ori into the lfs.
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep lfs
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | not grep ori
define float @test() {
%tmp.i = load float, ptr inttoptr (i32 186018016 to ptr) ; <float> [#uses=1]
ret float %tmp.i
}