blob: 1d323228cd1fb43a6ababf2061445fde85d2440c [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]
Dale Johannesen5683e8f2010-06-04 01:01:24 +00007 %tmp2 = call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
Tanya Lattner246a1372008-02-17 20:02:20 +00008 ret i32 %tmp2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
10
Tanya Lattner246a1372008-02-17 20:02:20 +000011declare i32 @f(i32, i16)