diff options
-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 00000000000..c4d8f972bc7 --- /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 + +float %test() { + %tmp.i = load float* cast (uint 186018016 to float*) + ret float %tmp.i +} + |