blob: cad69c4b6ea4b9bdfe38ec7be0942e64fe383fd6 [file] [log] [blame]
Evan Cheng02b985c2007-01-19 09:20:23 +00001; 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}