OSDN Git Service

Convert tests using "| wc -l | grep ..." to use the count script.
[android-x86/external-llvm.git] / test / CodeGen / ARM / str_trunc.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
2 ; RUN:   grep strb | count 1
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
4 ; RUN:   grep strh | count 1
5
6 void %test1(int %v, short* %ptr) {
7         %tmp = cast int %v to short
8         store short %tmp, short* %ptr
9         ret void
10 }
11
12 void %test2(int %v, ubyte* %ptr) {
13         %tmp = cast int %v to ubyte
14         store ubyte %tmp, ubyte* %ptr
15         ret void
16 }