blob: 391e774ac85ee60f681289a1d2e5e050623a2b6a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
Dan Gohman8c89a502007-08-15 13:36:28 +00002; RUN: grep strb | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep strh | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +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}