blob: a993e65e4c84afc047306ba3ee9bfb7a8343be88 [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 |\
Dan Gohman28beeea2007-08-15 13:36:28 +00003; RUN: grep mov | count 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)