new testcase
authorChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 22:37:05 +0000 (22:37 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 22:37:05 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26906 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/load-constant-addr.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/load-constant-addr.ll b/test/CodeGen/PowerPC/load-constant-addr.ll
new file mode 100644 (file)
index 0000000..c4d8f97
--- /dev/null
@@ -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
+}
+