blob: 7145351da079ec38f5b9445a5299f26cdde68814 [file] [log] [blame]
Evan Cheng02b985c2007-01-19 09:20:23 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
Evan Chengc7954662007-03-08 19:27:32 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 | grep mov | wc -l | grep 3
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)