2014-05-09 22:32:13 +00:00
|
|
|
; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 < %s | FileCheck %s
|
2012-10-19 22:11:40 +00:00
|
|
|
|
2014-05-09 22:32:13 +00:00
|
|
|
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
|
2012-10-19 22:11:40 +00:00
|
|
|
|
2014-05-09 22:32:13 +00:00
|
|
|
store i32 42, i32* %agg.result
|
|
|
|
ret void
|
|
|
|
}
|
2012-10-19 22:11:40 +00:00
|
|
|
|
2014-11-07 16:54:21 +00:00
|
|
|
define void @bar(i32 signext %v, i32* noalias sret %agg.result) nounwind {
|
2012-10-19 22:11:40 +00:00
|
|
|
entry:
|
2014-05-09 22:32:13 +00:00
|
|
|
; CHECK-LABEL: bar:
|
|
|
|
; CHECK: sw $4, 0($5)
|
|
|
|
; CHECK: jr $ra
|
|
|
|
; CHECK-NEXT: move $2, $5
|
2012-10-24 02:10:54 +00:00
|
|
|
|
2014-05-09 22:32:13 +00:00
|
|
|
store i32 %v, i32* %agg.result
|
2012-10-19 22:11:40 +00:00
|
|
|
ret void
|
|
|
|
}
|