mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
d89ac8f158
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230628 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
494 B
LLVM
24 lines
494 B
LLVM
; RUN: llc -march=mips64el -mcpu=mips64r2 -target-abi=n64 < %s | FileCheck %s
|
|
|
|
define void @foo(i32* noalias sret %agg.result) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: sw {{.*}}, 0($4)
|
|
; CHECK: jr $ra
|
|
; CHECK-NEXT: move $2, $4
|
|
|
|
store i32 42, i32* %agg.result
|
|
ret void
|
|
}
|
|
|
|
define void @bar(i32 signext %v, i32* noalias sret %agg.result) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: bar:
|
|
; CHECK: sw $4, 0($5)
|
|
; CHECK: jr $ra
|
|
; CHECK-NEXT: move $2, $5
|
|
|
|
store i32 %v, i32* %agg.result
|
|
ret void
|
|
}
|