blob: 5a1b961194cf4c10cd302d363aecae152cb5f40c [file] [log] [blame]
Reid Spencer1c0c94d2007-04-15 19:11:47 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
2; RUN: grep strb | wc -l | grep 1
3; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
4; RUN: grep strh | wc -l | grep 1
Evan Cheng02b985c2007-01-19 09:20:23 +00005
6void %test1(int %v, short* %ptr) {
7 %tmp = cast int %v to short
8 store short %tmp, short* %ptr
9 ret void
10}
11
12void %test2(int %v, ubyte* %ptr) {
13 %tmp = cast int %v to ubyte
14 store ubyte %tmp, ubyte* %ptr
15 ret void
16}