public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "linkw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE Date: Mon, 05 Feb 2024 13:24:08 +0000 [thread overview] Message-ID: <bug-106680-4-bW8wRm2AZE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-106680-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 --- Comment #11 from Kewen Lin <linkw at gcc dot gnu.org> --- (In reply to Sebastian Huber from comment #8) > Yes, it seems that -mcpu=e6500 -mno-powerpc64 yields the right code for the > attached test case (with or without the -m32). The default is -m32 I guess? :) > > I am now a bit confused what the purpose of the -m32 and -m64 options is. For -m32/-m64, the manual says: Generate code for 32-bit or 64-bit environments of Darwin and SVR4 targets (including GNU/Linux). The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any PowerPC variant. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits, and generates code for PowerPC64, as for -mpowerpc64. But it's possible to interact with option powerpc64, like cpu e6500 which by default supports powerpc64 and if applied OS is able to support the necessary context switches, we want -mpowerpc64 kept and it's able to generate more efficient code (leveraging insns guarded with powerpc64 flag).
next prev parent reply other threads:[~2024-02-05 13:24 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-106680-4@http.gcc.gnu.org/bugzilla/> 2022-08-29 8:52 ` linkw at gcc dot gnu.org 2022-12-27 10:14 ` cvs-commit at gcc dot gnu.org 2023-01-04 5:21 ` linkw at gcc dot gnu.org 2024-01-20 11:27 ` sebastian.huber@embedded-brains.de 2024-01-20 11:33 ` sebastian.huber@embedded-brains.de 2024-02-05 12:54 ` linkw at gcc dot gnu.org 2024-02-05 13:01 ` sebastian.huber@embedded-brains.de 2024-02-05 13:03 ` linkw at gcc dot gnu.org 2024-02-05 13:08 ` sebastian.huber@embedded-brains.de 2024-02-05 13:24 ` linkw at gcc dot gnu.org [this message] 2024-02-05 13:30 ` linkw at gcc dot gnu.org 2024-02-05 13:38 ` sebastian.huber@embedded-brains.de 2024-02-07 14:08 ` sebastian.huber@embedded-brains.de
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=bug-106680-4-bW8wRm2AZE@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).