X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FPowerPC%2Fconstants.ll;h=9efca916d69c92969fe28b24e3b28f8a12011ae7;hb=c58b8f0b652198870a776499af5d3286b07dd7f6;hp=0c0d4edc159d81e5f394bd4977276859f3f4bcc7;hpb=28beeeac4db2d582d4947db96d62e423e4b68d88;p=oota-llvm.git diff --git a/test/CodeGen/PowerPC/constants.ll b/test/CodeGen/PowerPC/constants.ll index 0c0d4edc159..9efca916d69 100644 --- a/test/CodeGen/PowerPC/constants.ll +++ b/test/CodeGen/PowerPC/constants.ll @@ -1,54 +1,52 @@ ; All of these routines should be perform optimal load of constants. -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ +; RUN: llc < %s -march=ppc32 | \ ; RUN: grep lis | count 5 -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ +; RUN: llc < %s -march=ppc32 | \ ; RUN: grep ori | count 3 -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {li } | count 4 +; RUN: llc < %s -march=ppc32 | \ +; RUN: grep "li " | count 4 -implementation ; Functions: - -int %f1() { +define i32 @f1() { entry: - ret int 1 + ret i32 1 } -int %f2() { +define i32 @f2() { entry: - ret int -1 + ret i32 -1 } -int %f3() { +define i32 @f3() { entry: - ret int 0 + ret i32 0 } -int %f4() { +define i32 @f4() { entry: - ret int 32767 + ret i32 32767 } -int %f5() { +define i32 @f5() { entry: - ret int 65535 + ret i32 65535 } -int %f6() { +define i32 @f6() { entry: - ret int 65536 + ret i32 65536 } -int %f7() { +define i32 @f7() { entry: - ret int 131071 + ret i32 131071 } -int %f8() { +define i32 @f8() { entry: - ret int 2147483647 + ret i32 2147483647 } -int %f9() { +define i32 @f9() { entry: - ret int -2147483648 + ret i32 -2147483648 }