Skip to content

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented May 20, 2025

gcc-16 master branch dropped support for evex512 as:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=c052a6f4a1c803cb92147ff98fb91cf3511e0856

As a result libdeflate build started failing as:

In file included from /build/source/lib/adler32.c:28:
/build/source/lib/x86/adler32_template.h:135:12: error: attribute 'target' argument 'no-evex512' is unknown
  135 | ADD_SUFFIX(reduce_to_32bits)(vec_t v_s1, vec_t v_s2, u32 *s1_p, u32 *s2_p)
      |            ^~~~~~~~~~~~~~~~

The change adds upper build to evex512 for gcc.

gcc-16 `master` branch dropped support for `evex512` as:
    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=c052a6f4a1c803cb92147ff98fb91cf3511e0856

As a result libdeflate build started failing as:

    In file included from /build/source/lib/adler32.c:28:
    /build/source/lib/x86/adler32_template.h:135:12: error: attribute 'target' argument 'no-evex512' is unknown
      135 | ADD_SUFFIX(reduce_to_32bits)(vec_t v_s1, vec_t v_s2, u32 *s1_p, u32 *s2_p)
          |            ^~~~~~~~~~~~~~~~

The change adds upper build to `evex512` for `gcc`.
@pinskia
Copy link

pinskia commented May 20, 2025

I think evex512 will be removed from GCC 15.2.0 also. So it might just make sense to remove all references to it since it will never be supported in HW alone.

`-mavx*` set of options now enable `EVEX` where
required without a separate flag. Let's drop
explicit use of `-mevex512` as it was dropped in
`gcc-16.`
@trofi
Copy link
Contributor Author

trofi commented May 20, 2025

Sounds good! Added extra lib/x86: drop any mention of evex512 commit to completely remove it.

@ebiggers
Copy link
Owner

I'll merge this. Unfortunately this will regress #394 (FYI @lambdadog), but they are just going to have to stop using -mno-evex512 anyway.

@ebiggers ebiggers merged commit 6bb4936 into ebiggers:master May 22, 2025
49 checks passed
@trofi trofi deleted the evex512-drop branch May 22, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants