Multi-value return support.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
test compile
|
||||
target aarch64
|
||||
|
||||
;; Test default (non-SpiderMonkey) ABI.
|
||||
function %f() -> i64, i64 {
|
||||
block1:
|
||||
v0 = iconst.i64 1
|
||||
v1 = iconst.i64 2
|
||||
return v0, v1
|
||||
}
|
||||
|
||||
; check: stp fp, lr, [sp, #-16]!
|
||||
; nextln: mov fp, sp
|
||||
; nextln: movz x0, #1
|
||||
; nextln: movz x1, #2
|
||||
; nextln: mov sp, fp
|
||||
; nextln: ldp fp, lr, [sp], #16
|
||||
; nextln: ret
|
||||
@@ -1,5 +1,6 @@
|
||||
test compile
|
||||
target x86_64 haswell
|
||||
target aarch64
|
||||
|
||||
;; Returning many f32s
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
test compile
|
||||
target x86_64 haswell
|
||||
target aarch64
|
||||
|
||||
;; Returning many f64s
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
test compile
|
||||
target x86_64 haswell
|
||||
target aarch64
|
||||
|
||||
;; Returning many i32s
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
test compile
|
||||
target x86_64 haswell
|
||||
target aarch64
|
||||
|
||||
;; Returning many i64s
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
test compile
|
||||
target x86_64 haswell
|
||||
target aarch64
|
||||
|
||||
function %return_20_i32s() -> i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 {
|
||||
block0:
|
||||
|
||||
Reference in New Issue
Block a user