Convert tests using "| wc -l | grep ..." to use the count script.
[oota-llvm.git] / test / CodeGen / X86 / shift-folding.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
2 ; RUN:   grep {s\[ah\]\[rl\]l} | count 1
3
4 int* %test1(int *%P, uint %X) {
5         %Y = shr uint %X, ubyte 2
6         %P2 = getelementptr int* %P, uint %Y
7         ret int* %P2
8 }
9
10 int* %test2(int *%P, uint %X) {
11         %Y = shl uint %X, ubyte 2
12         %P2 = getelementptr int* %P, uint %Y
13         ret int* %P2
14 }
15
16 int* %test3(int *%P, int %X) {
17         %Y = shr int %X, ubyte 2
18         %P2 = getelementptr int* %P, int %Y
19         ret int* %P2
20 }