public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:master commit in: arch/
Date: Mon, 25 Mar 2024 11:04:18 +0000 (UTC)	[thread overview]
Message-ID: <1710949647.ebed28dd5e08e8aaee44f08c27c367019568fb15.bkohler@gentoo> (raw)

commit:     ebed28dd5e08e8aaee44f08c27c367019568fb15
Author:     matoro <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Tue Feb 13 21:08:48 2024 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed Mar 20 15:47:27 2024 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=ebed28dd

arch: add new x86.i686-ssemath subprofile

As mentioned on the mailing list, x86 arch testing needs to be performed
using SSE registers for floating-point math instead of the 387 FPU.
This is a subprofile which provides a generic i686 target with SSE2 and
`-mfpmath=sse`.  The use is not just limited to arch testing however as
this is a useful platform for getting maximum performance on late-gen
chips.  Per gcc:

> The resulting code should be considerably faster in the majority of
cases and avoid the numerical instability problems of 387 code, but may
break some existing code that expects temporaries to be 80 bits.

Of course modern code has quite the opposite problem, where it does not
expect floating-point variables to be 80 bits.

Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Closes: https://github.com/gentoo/catalyst/pull/12
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 arch/x86.toml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86.toml b/arch/x86.toml
index 5451d410..24d4c547 100644
--- a/arch/x86.toml
+++ b/arch/x86.toml
@@ -50,3 +50,6 @@ CPU_FLAGS_X86 = [ "mmx", "mmxext", "3dnow", "3dnowext",]
 COMMON_FLAGS = "-O2 -march=athlon-xp -pipe"
 CPU_FLAGS_X86 = [ "mmx", "mmxext", "3dnow", "3dnowext", "sse",]
 
+[x86.i686-ssemath]
+COMMON_FLAGS = "-O2 -march=i686 -msse2 -mfpmath=sse -pipe"
+CPU_FLAGS_X86 = [ "mmx", "mmxext", "sse", "sse2",]


             reply	other threads:[~2024-03-25 11:04 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25 11:04 Ben Kohler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-31  9:08 [gentoo-commits] proj/catalyst:master commit in: arch/ Andreas K. Hüttel
2025-07-29 22:59 Andreas K. Hüttel
2025-07-26 12:33 Andreas K. Hüttel
2025-07-26 12:23 Andreas K. Hüttel
2025-07-21 19:47 Andreas K. Hüttel
2025-07-18 21:58 Andreas K. Hüttel
2025-07-18  8:03 Andreas K. Hüttel
2025-07-15 18:05 Andreas K. Hüttel
2025-04-10 23:00 Andreas K. Hüttel
2024-11-02 14:56 Andreas K. Hüttel
2024-08-19 14:19 Andreas K. Hüttel
2024-07-29 20:24 Andreas K. Hüttel
2024-05-28 10:52 Andreas K. Hüttel
2024-04-06 13:57 Andreas K. Hüttel
2024-03-25 21:24 Andreas K. Hüttel
2024-03-25 11:04 Ben Kohler
2024-01-21 22:45 Andreas K. Hüttel
2023-12-06 21:29 Andreas K. Hüttel
2023-12-06 21:26 Andreas K. Hüttel
2023-07-20 18:14 Andreas K. Hüttel
2023-06-20 18:55 Andreas K. Hüttel
2023-05-28  8:37 Andreas K. Hüttel
2023-03-05 21:32 Andreas K. Hüttel
2023-01-17 21:26 Andreas K. Hüttel
2022-11-20  0:21 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-04-21 16:44 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-14 14:11 Andreas K. Hüttel
2022-10-11 12:49 Andreas K. Hüttel
2022-07-30 18:39 Andreas K. Hüttel
2022-02-27 15:42 Andreas K. Hüttel
2021-11-20 14:31 Andreas K. Hüttel
2021-11-17 21:21 Andreas K. Hüttel
2021-09-11 18:11 Andreas K. Hüttel
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-21 17:58 Matt Turner
2020-09-17 21:09 Andreas K. Hüttel
2020-07-17  9:39 Andreas K. Hüttel
2020-04-14 18:29 Matt Turner
2020-04-14 18:29 Matt Turner
2013-04-06 17:07 Raúl Porcel
2013-01-05 19:18 Matt Turner
2012-09-28  1:35 Matt Turner
2012-09-23  3:04 Jorge Manuel B. S. Vicetto
2012-09-08 13:48 Jorge Manuel B. S. Vicetto
2012-08-29  3:58 Jorge Manuel B. S. Vicetto
2012-08-29  3:51 Jorge Manuel B. S. Vicetto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1710949647.ebed28dd5e08e8aaee44f08c27c367019568fb15.bkohler@gentoo \
    --to=bkohler@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox