blob: f20344301e997936b1937b63604eef4dd812a549 [file] [log] [blame]
Tanya Lattner6263f942008-02-17 20:02:20 +00001; RUN: llvm-as < %s | llc -march=arm -mattr=+v6
2; RUN: llvm-as < %s | 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
Tanya Lattner6263f942008-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
Evan Cheng02b985c2007-01-19 09:20:23 +00009}
10
Tanya Lattner6263f942008-02-17 20:02:20 +000011declare i32 @f(i32, i16)