blob: 1e4135b3084976403a753ee3b4ca0f98ab3c8160 [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 -mattr=+v6 &&
3; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep mov | wc -l | grep 2
4
5int %test(int %x) {
6 %tmp = cast int %x to short
7 %tmp2 = tail call int %f( int 1, short %tmp )
8 ret int %tmp2
9}
10
11declare int %f(int, short)