Add definitions for the PPC a2q core marked as having QPX available
[oota-llvm.git] / test / CodeGen / PowerPC / load-constant-addr.ll
index d7e3d454e4e577fa6dacf1046b1dd06ec92b53c7..f1d061c1ad5a287fe282b8f2c1ec195749c126cf 100644 (file)
@@ -1,9 +1,9 @@
 ; Should fold the ori into the lfs.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep lfs &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep ori
+; RUN: llc < %s -march=ppc32 | grep lfs
+; RUN: llc < %s -march=ppc32 | not grep ori
 
-float %test() {
-  %tmp.i = load float* cast (uint 186018016 to float*)
-  ret float %tmp.i
+define float @test() {
+        %tmp.i = load float* inttoptr (i32 186018016 to float*)         ; <float> [#uses=1]
+        ret float %tmp.i
 }