1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/Regression/CodeGen/PowerPC/constants.ll
John Criswell 1ece5aa9da Use %s instead of hard coding the input filename.
This allows the test to work when srcdir != objdir.

llvm-svn: 23775
2005-10-17 21:54:18 +00:00

52 lines
710 B
LLVM

; All of these routines should be perform optimal load of constants.
; RUN: llvm-as < %s | llc -march=ppc32 | grep lis | wc -l | grep 5 &&
; RUN: llvm-as < %s | llc -march=ppc32 | grep ori | wc -l | grep 3 &&
; RUN: llvm-as < %s | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
implementation ; Functions:
int %f1() {
entry:
ret int 1
}
int %f2() {
entry:
ret int -1
}
int %f3() {
entry:
ret int 0
}
int %f4() {
entry:
ret int 32767
}
int %f5() {
entry:
ret int 65535
}
int %f6() {
entry:
ret int 65536
}
int %f7() {
entry:
ret int 131071
}
int %f8() {
entry:
ret int 2147483647
}
int %f9() {
entry:
ret int -2147483648
}