Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem: fix compilation with YASM #309

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ v2.31.1
* Fixed spelling mistakes and typos.
* Fixed Windows build on erasure code performance applications.
* Fixed FreeBSD build warnings.
* Fixed compilation with YASM.

v2.31

Expand Down
4 changes: 3 additions & 1 deletion mem/mem_multibinary.asm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
default rel
[bits 64]

extern mem_zero_detect_avx512
%ifdef HAVE_AS_KNOWS_AVX512
extern mem_zero_detect_avx512
%endif
extern mem_zero_detect_avx2
extern mem_zero_detect_avx
extern mem_zero_detect_sse
Expand Down
4 changes: 4 additions & 0 deletions mem/mem_zero_detect_avx2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@
%define tmp0 arg2
%define tmp1 arg3

; Workaround for YASM
%ifdef HAVE_AS_KNOWS_AVX512
%use smartalign
ALIGNMODE P6
%endif

default rel

[bits 64]
Expand Down
4 changes: 4 additions & 0 deletions mem/mem_zero_detect_avx512.asm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

%include "reg_sizes.asm"

%ifdef HAVE_AS_KNOWS_AVX512

%ifidn __OUTPUT_FORMAT__, elf64
%define arg0 rdi
%define arg1 rsi
Expand Down Expand Up @@ -140,3 +142,5 @@ align 16


endproc_frame

%endif ; ifdef HAVE_AS_KNOWS_AVX512
Loading