blob: d188fae70340a5ff06a67ee22444fec6e64c77c3 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+v6
Evan Cheng801d98b2012-01-04 01:55:04 +00002; RUN: llc < %s -mtriple=arm-apple-ios -mattr=+v6 |\
Jim Grosbache09e95b2009-11-21 23:34:09 +00003; RUN: grep mov | count 3
Evan Chenga5007fa2007-01-19 09:20:23 +00004
Tanya Lattnerf697c032008-02-17 20:02:20 +00005define i32 @test(i32 %x) {
6 %tmp = trunc i32 %x to i16 ; <i16> [#uses=1]
Dale Johannesenb3780b12010-06-04 01:01:24 +00007 %tmp2 = call i32 @f( i32 1, i16 %tmp ) ; <i32> [#uses=1]
Tanya Lattnerf697c032008-02-17 20:02:20 +00008 ret i32 %tmp2
Evan Chenga5007fa2007-01-19 09:20:23 +00009}
10
Tanya Lattnerf697c032008-02-17 20:02:20 +000011declare i32 @f(i32, i16)