blob: 6dc4650cf05586eae10d54eccf7c84977c1d9a82 [file] [log] [blame]
Reid Spencereb1d74e2007-04-16 17:36:08 +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
Evan Cheng02b985c2007-01-19 09:20:23 +00004
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)