xref: /llvm-project/llvm/test/CodeGen/ARM/str_trunc.ll (revision a5007faaa68de9487fe63b690bea6e16c3c5f770)
1; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "strb"  | wc -l | grep 1 &&
3; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "strh"  | wc -l | grep 1
4
5void %test1(int %v, short* %ptr) {
6        %tmp = cast int %v to short
7	store short %tmp, short* %ptr
8	ret void
9}
10
11void %test2(int %v, ubyte* %ptr) {
12        %tmp = cast int %v to ubyte
13	store ubyte %tmp, ubyte* %ptr
14	ret void
15}
16