diff options
Diffstat (limited to 'test/CodeGen/PowerPC/load-constant-addr.ll')
-rw-r--r-- | test/CodeGen/PowerPC/load-constant-addr.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/load-constant-addr.ll b/test/CodeGen/PowerPC/load-constant-addr.ll new file mode 100644 index 0000000000000..d2be04efd0366 --- /dev/null +++ b/test/CodeGen/PowerPC/load-constant-addr.ll @@ -0,0 +1,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 +} + |