blob: 5c9a28a1d714bf625a64ce0428895d073064b5e8 [file] [log] [blame]
Evan Cheng02b985c2007-01-19 09:20:23 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
Evan Cheng100c2102007-01-31 22:27:07 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 | grep mov | wc -l | grep 2
Evan Cheng02b985c2007-01-19 09:20:23 +00003
4int %test(int %x) {
5 %tmp = cast int %x to short
6 %tmp2 = tail call int %f( int 1, short %tmp )
7 ret int %tmp2
8}
9
10declare int %f(int, short)