blob: 6dc4650cf05586eae10d54eccf7c84977c1d9a82 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6
2; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 |\
3; RUN: grep mov | wc -l | grep 3
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)