Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame^] | 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 | |
| 5 | void %test1(int %v, short* %ptr) { |
| 6 | %tmp = cast int %v to short |
| 7 | store short %tmp, short* %ptr |
| 8 | ret void |
| 9 | } |
| 10 | |
| 11 | void %test2(int %v, ubyte* %ptr) { |
| 12 | %tmp = cast int %v to ubyte |
| 13 | store ubyte %tmp, ubyte* %ptr |
| 14 | ret void |
| 15 | } |