Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2024 18:42:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276104] [exp-run] Against llvm-18-update branch on GitHub
Message-ID:  <bug-276104-7788-4uUcUqkaYH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276104-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276104-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276104

--- Comment #161 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dfcfb2d6393712dee3f1f8f0c3840d1481=
7dea416

commit fcfb2d6393712dee3f1f8f0c3840d14817dea416
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-05-16 18:21:45 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-05-16 18:41:45 +0000

    Merge commit 87f3407856e6 from llvm-project (by Phoebe Wang):

      [X86][Driver] Do not add `-evex512` for `-march=3Dnative` when the ta=
rget
doesn't support AVX512 (#91694)

    This prevents problems with ports that fail to build with
    CPUTYPE=3Dnative, if the native CPU supports AVX512F, resulting in erro=
rs
    like:

=20=20=20=20=20
/wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler3=
2_template.h:197:21:
error: always_inline function '_mm512_set1_epi8' requires target feature
'evex512', but would be inlined into function 'adler32_x86_avx512_vl512_vnn=
i'
that is compiled without support for 'evex512'
        197 |         const vec_t ones =3D VSET1_8(1);
            |                            ^
=20=20=20=20=20
/wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler3=
2_template.h:116:23:
note: expanded from macro 'VSET1_8'
        116 | #  define VSET1_8(a)            _mm512_set1_epi8(a)
            |                                 ^
=20=20=20=20=20
/wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler3=
2_template.h:197:21:
error: AVX vector return of type '__m512i' (vector of 8 'long long' values)
without 'evex512' enabled changes the ABI
=20=20=20=20=20
/wrkdirs/usr/ports/archivers/libdeflate/work/libdeflate-1.20/lib/x86/adler3=
2_template.h:116:23:
note: expanded from macro 'VSET1_8'
        116 | #  define VSET1_8(a)            _mm512_set1_epi8(a)
            |                                 ^

    Ports known to be affected are: archivers/libdeflate, devel/highway,
    www/node20, and lang/rust.

    (For rust itself there is also a similar issue reported at
    https://github.com/rust-lang/rust/pull/121088).

    PR:             276104
    Reported by:    netchild
    MFC after:      3 days

 contrib/llvm-project/llvm/lib/TargetParser/Host.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276104-7788-4uUcUqkaYH>