From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 07B103858410 for ; Fri, 21 Jul 2023 17:36:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 07B103858410 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org From: "Andreas K. Huettel" To: Wilco Dijkstra Cc: 'GNU C Library' Subject: Re: libmvec on aarch64 without hardware SVE support Date: Fri, 21 Jul 2023 19:35:53 +0200 Message-ID: <10486820.lvqk35OSZv@pinacolada> Organization: Gentoo Linux In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8734867.alqRGMn8q6"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --nextPart8734867.alqRGMn8q6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; protected-headers="v1" From: "Andreas K. Huettel" To: Wilco Dijkstra Cc: 'GNU C Library' Subject: Re: libmvec on aarch64 without hardware SVE support Date: Fri, 21 Jul 2023 19:35:53 +0200 Message-ID: <10486820.lvqk35OSZv@pinacolada> Organization: Gentoo Linux MIME-Version: 1.0 > Hi Andreas, >=20 > > > configure:331: aarch64-unknown-linux-gnu-gcc -mcpu=3Dnative -pipe -O= 2 -Wl,-O1 -Wl,--as-needed -c -march=3Darmv8.2-a+sve conftest.s 1>&5 >=20 > I believe you can only get that if you accidentally add -mcpu=3Dnative to= CC > rather than to CFLAGS. >=20 > > I don't know how typical -mcpu=3D... usage in comparison to -march=3D..= =2E is,=20 > > the failure I got with the CFLAGS forcing sve off probably falls under= =20 > > "self-inflicted pain" then. If the intention of the -march=3Darmv8.2-a+= sve=20 > > in the configure test is to override user settings, it should fully do = it > > though. >=20 > We don't add CFLAGS here, so this works fine. If we used CFLAGS then > these tests would have to use -mcpu since that takes precedence over > -march. Hi Wilco,=20 Oh. Right. Thank you! Then it's indeed even more harmless since it is (if at all) a Gentoo-only problem. (Following advice from here long ago, we add for glibc the base CFLAGS=20 to CC. I'd have to look up the rationale again myself; in general this works very well though.) So let's close this thread. Nothing to see here, nothing to do here,=20 just move along please. Best, Andreas =2D- Andreas K. H=FCttel dilfridge@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice) --nextPart8734867.alqRGMn8q6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQKTBAABCgB9FiEE/Rnm0xsZLuTcY+rT3CsWIV7VQSoFAmS6wflfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZE MTlFNkQzMUIxOTJFRTREQzYzRUFEM0RDMkIxNjIxNUVENTQxMkEACgkQ3CsWIV7V QSrDyg//ajXO9wz1ZMK60dGcLas8yM+ySOzNMcLM2/s2AtfDznVUPPJSkgoDEv5l oEdaoIndBS2VXv22khfb6C4kvPercvqQEaJljuOXJOhnsie82eOJFR1H2XJQYhjJ cE1rZ+DkO8j/piW7aJt9V+iwp10YV69plrVZ5xX/J4Gvkv63myGYgHib1LKjTq8B 4fPnMvMEMfUPMPCFGhurwZ5PF7LbbSOZHEVYmPEr05SdAaluNQ1OQTMP/gyfi9WM ozgW9fr3O98oRyhaajuWgpChL3l6M5bjzkwnTyVYHQ/wd1ZL1YxrnEm0GmbXq1kr FMxJPC8PkDjW3RxMT2ePEgS91h8f5GcSjHameMNl3wfq9EBNYEDlKUZVF8YoLqUc 6+scBEuk5ri/Ct9yCLg2hGsKzWymEIuFl+ch5F35T3h231A/o+IjNPr97YE2Eizp 57TwrJ+EO2Nt1Sa3yF4/lz9kM1ZIq5Vflj4EUpcc5dCwCOJQCZQbSbhc3ymU7jAw zkomKkkSgjDmcifJVD29C75/ZPOL4vIkVFCgBtkyiX1YiMQUo7AB4e5821mZFnN2 6A73grUbRcF+njbMzv7YW2k1CoTq/CKj8c8Ctw8OujkWmjDG1y9N4qqwCGgH985R u6fksQgFq5q8V8z7Jc146fAAjsEW8faWTbrQZ4rPOVx8KWgKxqk= =UM4y -----END PGP SIGNATURE----- --nextPart8734867.alqRGMn8q6--