blob: cc718399ea96e2cb49c1ce8e29d5175b36f2ed49 [file] [log] [blame]
Bob Wilson13e80bd2009-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
Lauro Ramos Venancio876eaf12007-02-13 14:07:13 +00003
4define i32 @f(i32 %a, i64 %b) {
Bob Wilson13e80bd2009-10-27 05:50:28 +00005; ELF: mov r0, r2
6; DARWIN: mov r0, r1
Lauro Ramos Venancio876eaf12007-02-13 14:07:13 +00007 %tmp = call i32 @g(i64 %b)
8 ret i32 %tmp
9}
10
Reid Spencereb1d74e2007-04-16 17:36:08 +000011declare i32 @g(i64)