blob: 59f0d538d47ccf5d45f9b26cb048b18b64bd0634 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+v6
2; RUN: llc < %s -mtriple=arm-apple-darwin -mattr=+v6 |\
Jim Grosbacheee86172009-11-21 23:34:09 +00003; RUN: grep mov | count 3
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner246a1372008-02-17 20:02:20 +00005define i32 @test(i32 %x) {
6 %tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
7 %tmp2 = tail call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
8 ret i32 %tmp2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
10
Tanya Lattner246a1372008-02-17 20:02:20 +000011declare i32 @f(i32, i16)