blob: cc718399ea96e2cb49c1ce8e29d5175b36f2ed49 [file] [log] [blame]
Bob Wilsonf59fc082009-10-27 05:50:28 +00001; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=ELF
2; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
4define i32 @f(i32 %a, i64 %b) {
Bob Wilsonf59fc082009-10-27 05:50:28 +00005; ELF: mov r0, r2
6; DARWIN: mov r0, r1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007 %tmp = call i32 @g(i64 %b)
8 ret i32 %tmp
9}
10
11declare i32 @g(i64)