Use F64X2 as type when saving and restoring XMM registers
When adding floating-point registers as callee-saved register to block- and function parameter lists add them as `F64X2` arguments.
This commit is contained in:
committed by
iximeow
parent
63c97e365e
commit
4d34c22a1c
@@ -40,10 +40,10 @@ block0(v0: f64, v1: f64, v2: f64, v3: f64):
|
||||
[-, %xmm7] v5 = fadd v0, v1
|
||||
return
|
||||
}
|
||||
; check: function %float_callee_sav(f64 [%xmm0], f64 [%xmm1], f64 [%xmm2], f64 [%xmm3], i64 fp [%rbp], f64 csr [%xmm6], f64 csr [%xmm7]) -> i64 fp [%rbp], f64 csr [%xmm6], f64 csr [%xmm7] windows_fastcall {
|
||||
; check: function %float_callee_sav(f64 [%xmm0], f64 [%xmm1], f64 [%xmm2], f64 [%xmm3], i64 fp [%rbp], f64x2 csr [%xmm6], f64x2 csr [%xmm7]) -> i64 fp [%rbp], f64x2 csr [%xmm6], f64x2 csr [%xmm7] windows_fastcall {
|
||||
; nextln: ss0 = explicit_slot 32, offset -80
|
||||
; nextln: ss1 = incoming_arg 16, offset -48
|
||||
; check: block0(v0: f64 [%xmm0], v1: f64 [%xmm1], v2: f64 [%xmm2], v3: f64 [%xmm3], v6: i64 [%rbp], v8: f64 [%xmm6], v9: f64 [%xmm7]):
|
||||
; check: block0(v0: f64 [%xmm0], v1: f64 [%xmm1], v2: f64 [%xmm2], v3: f64 [%xmm3], v6: i64 [%rbp], v8: f64x2 [%xmm6], v9: f64x2 [%xmm7]):
|
||||
; nextln: x86_push v6
|
||||
; nextln: copy_special %rsp -> %rbp
|
||||
; nextln: adjust_sp_down_imm 64
|
||||
@@ -51,8 +51,8 @@ block0(v0: f64, v1: f64, v2: f64, v3: f64):
|
||||
; nextln: store notrap aligned v8, v7
|
||||
; nextln: store notrap aligned v9, v7+16
|
||||
; check: v10 = stack_addr.i64 ss0
|
||||
; nextln: v11 = load.f64 notrap aligned v10
|
||||
; nextln: v12 = load.f64 notrap aligned v10+16
|
||||
; nextln: v11 = load.f64x2 notrap aligned v10
|
||||
; nextln: v12 = load.f64x2 notrap aligned v10+16
|
||||
; nextln: adjust_sp_up_imm 64
|
||||
; nextln: v13 = x86_pop.i64
|
||||
; nextln: v13, v11, v12
|
||||
|
||||
@@ -153,13 +153,13 @@ block0(v0: i64, v1: i64):
|
||||
; sameln: UnwindInfo {
|
||||
; nextln: version: 1,
|
||||
; nextln: flags: 0,
|
||||
; nextln: prologue_size: 26,
|
||||
; nextln: prologue_size: 25,
|
||||
; nextln: unwind_code_count_raw: 7,
|
||||
; nextln: frame_register: 5,
|
||||
; nextln: frame_register_offset: 12,
|
||||
; nextln: unwind_codes: [
|
||||
; nextln: UnwindCode {
|
||||
; nextln: offset: 26,
|
||||
; nextln: offset: 25,
|
||||
; nextln: op: SaveXmm128,
|
||||
; nextln: info: 15,
|
||||
; nextln: value: U16(
|
||||
@@ -217,13 +217,13 @@ block0(v0: i64, v1: i64):
|
||||
; sameln: UnwindInfo {
|
||||
; nextln: version: 1,
|
||||
; nextln: flags: 0,
|
||||
; nextln: prologue_size: 44,
|
||||
; nextln: prologue_size: 41,
|
||||
; nextln: unwind_code_count_raw: 16,
|
||||
; nextln: frame_register: 5,
|
||||
; nextln: frame_register_offset: 10,
|
||||
; nextln: unwind_codes: [
|
||||
; nextln: UnwindCode {
|
||||
; nextln: offset: 44,
|
||||
; nextln: offset: 41,
|
||||
; nextln: op: SaveXmm128,
|
||||
; nextln: info: 8,
|
||||
; nextln: value: U16(
|
||||
@@ -231,7 +231,7 @@ block0(v0: i64, v1: i64):
|
||||
; nextln: ),
|
||||
; nextln: },
|
||||
; nextln: UnwindCode {
|
||||
; nextln: offset: 38,
|
||||
; nextln: offset: 36,
|
||||
; nextln: op: SaveXmm128,
|
||||
; nextln: info: 7,
|
||||
; nextln: value: U16(
|
||||
@@ -239,7 +239,7 @@ block0(v0: i64, v1: i64):
|
||||
; nextln: ),
|
||||
; nextln: },
|
||||
; nextln: UnwindCode {
|
||||
; nextln: offset: 32,
|
||||
; nextln: offset: 31,
|
||||
; nextln: op: SaveXmm128,
|
||||
; nextln: info: 6,
|
||||
; nextln: value: U16(
|
||||
|
||||
Reference in New Issue
Block a user