blob: a993e65e4c84afc047306ba3ee9bfb7a8343be88 [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 |\
Dan Gohman8c89a502007-08-15 13:36:28 +00003; RUN: grep mov | count 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +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)