Commit cd57a9a0 authored by Henrik Gramner's avatar Henrik Gramner

Only perform stack allocation on WIN64 in ipred_filter_avx2

Makes it possible to use <32-byte stack alignment on non-Windows systems.

The stack space is used to store xmm registers which is only required
on 64-bit Windows.
parent 763f64cc
Pipeline #3670 passed with stages
in 5 minutes and 2 seconds
...@@ -2249,10 +2249,12 @@ ALIGN function_align ...@@ -2249,10 +2249,12 @@ ALIGN function_align
ALIGN function_align ALIGN function_align
.w16: .w16:
%if WIN64
%assign stack_offset stack_offset - stack_size_padded %assign stack_offset stack_offset - stack_size_padded
%assign xmm_regs_used 15 %assign xmm_regs_used 15
%assign stack_size_padded 0x98 %assign stack_size_padded 0x98
SUB rsp, stack_size_padded SUB rsp, stack_size_padded
sub hd, 2 sub hd, 2
TAIL_CALL .w16_main, 0 TAIL_CALL .w16_main, 0
.w16_main: .w16_main:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment