mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 22:42:46 +02:00
c08a22d8e6
The return value's address must be returned in %rax. i.e. the callee needs to copy the sret argument (%rdi) into the return value (%rax). This probably won't manifest as a bug when the caller is LLVM-compiled code. But it is an ABI guarantee and tools expect it. llvm-svn: 228321
11 lines
255 B
LLVM
11 lines
255 B
LLVM
; RUN: llc -mtriple=x86_64-apple-darwin8 < %s | FileCheck %s
|
|
; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: return32
|
|
; CHECK-DAG: movq $0, (%rdi)
|
|
; CHECK-DAG: movq %rdi, %rax
|
|
; CHECK: retq
|
|
define i256 @return32() {
|
|
ret i256 0
|
|
}
|