summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/load-constant-addr.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-20 22:37:05 +0000
committerChris Lattner <sabre@nondot.org>2006-03-20 22:37:05 +0000
commit3dfd61b910522fcac5d4c6d1dc55ee581a8b376d (patch)
tree254cb859e16208658a527b3079bfa46ae49c8b62 /test/CodeGen/PowerPC/load-constant-addr.ll
parent26d5d16a2c8ef6c0763afbfe06c940c40c461d6e (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/load-constant-addr.ll')
-rw-r--r--test/CodeGen/PowerPC/load-constant-addr.ll9
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
+}
+