If a vr is already marked alive in a bb, then it has PHI uses that are visited earlie...
[oota-llvm.git] / test / CodeGen / PowerPC / constants.ll
index d0eec36ce57c0bd21a12ea8f21e879a168b77447..0c0d4edc159d81e5f394bd4977276859f3f4bcc7 100644 (file)
@@ -1,51 +1,54 @@
 ; All of these routines should be perform optimal load of constants.
-; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep lis   | wc -l | grep 5 &&
-; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep ori   | wc -l | grep 3 &&
-; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN:   grep lis | count 5
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN:   grep ori | count 3
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN:   grep {li } | count 4
 
 implementation   ; Functions:
 
-int %_Z2f1v() {
+int %f1() {
 entry:
         ret int 1
 }
 
-int %_Z2f2v() {
+int %f2() {
 entry:
         ret int -1
 }
 
-int %_Z2f3v() {
+int %f3() {
 entry:
         ret int 0
 }
 
-int %_Z2f4v() {
+int %f4() {
 entry:
         ret int 32767
 }
 
-int %_Z2f5v() {
+int %f5() {
 entry:
         ret int 65535
 }
 
-int %_Z2f6v() {
+int %f6() {
 entry:
         ret int 65536
 }
 
-int %_Z2f7v() {
+int %f7() {
 entry:
         ret int 131071
 }
 
-int %_Z2f8v() {
+int %f8() {
 entry:
         ret int 2147483647
 }
 
-int %_Z2f9v() {
+int %f9() {
 entry:
         ret int -2147483648
 }