From 3dfd61b910522fcac5d4c6d1dc55ee581a8b376d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 20 Mar 2006 22:37:05 +0000 Subject: new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26906 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/load-constant-addr.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGen/PowerPC/load-constant-addr.ll (limited to 'test/CodeGen/PowerPC/load-constant-addr.ll') 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 +} + -- cgit v1.2.3