mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 15:40:46 +00:00
13e80bdb71
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85207 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
306 B
LLVM
12 lines
306 B
LLVM
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=ELF
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
|
|
|
|
define i32 @f(i32 %a, i64 %b) {
|
|
; ELF: mov r0, r2
|
|
; DARWIN: mov r0, r1
|
|
%tmp = call i32 @g(i64 %b)
|
|
ret i32 %tmp
|
|
}
|
|
|
|
declare i32 @g(i64)
|