summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/load-constant-addr.ll
blob: d2be04efd03667e1b4e5bbd5f91c2636dbf8cd21 (plain)
1
2
3
4
5
6
7
8
9
; Should fold the ori into the lfs.
; RUN: llvm-as < %s | llc -march=ppc32 | grep lfs
; RUN: llvm-as < %s | llc -march=ppc32 | not grep ori

define float @test() {
        %tmp.i = load float* inttoptr (i32 186018016 to float*)         ; <float> [#uses=1]
        ret float %tmp.i
}