llvm.org GIT mirror llvm / d41abfa
Use %s instead of hard coding the input filename. This allows the test to work when srcdir != objdir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23775 91177308-0d34-0410-b5e6-96231b3b80d8 John Criswell 15 years ago
5 changed file(s) with 17 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
0 ; All of these routines should be perform optimal load of constants.
1 ; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep lis | wc -l | grep 5 &&
2 ; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep ori | wc -l | grep 3 &&
3 ; RUN: llvm-as < constants.ll | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep lis | wc -l | grep 5 &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | grep ori | wc -l | grep 3 &&
3 ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
44
55 implementation ; Functions:
66
0 ; All of these ands and shifts should be folded into rlwimi's
1 ; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | not grep mulhwu &&
2 ; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | not grep srawi &&
3 ; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | not grep add &&
4 ; RUN: llvm-as < mulhs.ll | llc -march=ppc32 | grep mulhw | wc -l | grep 1
1 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep mulhwu &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
3 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep add &&
4 ; RUN: llvm-as < %s | llc -march=ppc32 | grep mulhw | wc -l | grep 1
55
66 implementation ; Functions:
77
0 ; All of these ands and shifts should be folded into rlwimi's
1 ; RUN: llvm-as < rlwimi.ll | llc -march=ppc32 | not grep and &&
2 ; RUN: llvm-as < rlwimi.ll | llc -march=ppc32 | grep rlwimi | wc -l | grep 8
1 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep and &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwimi | wc -l | grep 8
33
44 implementation ; Functions:
55
0 ; All of these ands and shifts should be folded into rlwimi's
1 ; RUN: llvm-as < rlwimi2.ll | llc -march=ppc32 | grep rlwimi | wc -l | grep 3 &&
2 ; RUN: llvm-as < rlwimi2.ll | llc -march=ppc32 | grep srwi | wc -l | grep 1 &&
3 ; RUN: llvm-as < rlwimi2.ll | llc -march=ppc32 | not grep slwi
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwimi | wc -l | grep 3 &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | grep srwi | wc -l | grep 1 &&
3 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep slwi
44
55 implementation ; Functions:
66
0 ; All of these ands and shifts should be folded into rlwimi's
1 ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep and &&
2 ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep srawi &&
3 ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep srwi &&
4 ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep slwi &&
5 ; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | grep rlwinm | wc -l | grep 8
1 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep and &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
3 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep srwi &&
4 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep slwi &&
5 ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 8
66
77 implementation ; Functions:
88