public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99648] [11 regression] gcc.dg/torture/pr71522.c fails starting with r11-165 for 32 bits Date: Fri, 09 Apr 2021 16:48:19 +0000 [thread overview] Message-ID: <bug-99648-4-ZNGfPT3oOA@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99648-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99648 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ok, I can finally reproduce, one needs -m32 -Os -mcpu=power7 (or power8 or power9) to reproduce. And the bug is created in store_bit_field_1 doing: rtx sub; HOST_WIDE_INT regnum; poly_uint64 regsize = REGMODE_NATURAL_SIZE (GET_MODE (op0)); if (known_eq (bitnum, 0U) && known_eq (bitsize, GET_MODE_BITSIZE (GET_MODE (op0)))) { sub = simplify_gen_subreg (GET_MODE (op0), value, fieldmode, 0); if (sub) { if (reverse) sub = flip_storage_order (GET_MODE (op0), sub); emit_move_insn (op0, sub); return true; } } (there is similar code later on). value is (const_vector:V16QI [ (const_int 65 [0x41]) repeated x15 (const_int 0 [0]) ]) simplify_gen_subreg from V16QImode to TFmode makes (const_double:TF 4.5232690196078126318752765655517578125e+6 [0x0.8a0a0a0a0a0904p+23]) out of that and the problem is that this constant doesn't convert back to value when simplify_gen_subreg converted back to V16QImode, instead it yields (const_vector:V16QI [ (const_int 65 [0x41]) (const_int 81 [0x51]) (const_int 65 [0x41]) repeated x5 (const_int 32 [0x20]) (const_int 62 [0x3e]) (const_int 0 [0]) repeated x7 ]) So, to me this looks like a dup of PR95450, except in simplify-rtx.c rather than in fold-const.c. Do we want to do the same thing in simplify_subreg and try to convert back for MODE_COMPOSITE_P?
next prev parent reply other threads:[~2021-04-09 16:48 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-18 15:31 [Bug other/99648] New: " seurer at gcc dot gnu.org 2021-03-18 16:42 ` [Bug other/99648] " jakub at gcc dot gnu.org 2021-03-19 7:39 ` [Bug target/99648] " rguenth at gcc dot gnu.org 2021-03-30 20:01 ` seurer at gcc dot gnu.org 2021-03-30 20:06 ` seurer at gcc dot gnu.org 2021-03-31 7:41 ` rguenth at gcc dot gnu.org 2021-04-09 16:48 ` jakub at gcc dot gnu.org [this message] 2021-04-09 17:42 ` jakub at gcc dot gnu.org 2021-04-12 6:44 ` rguenth at gcc dot gnu.org 2021-04-12 9:10 ` jakub at gcc dot gnu.org 2021-04-12 10:27 ` jakub at gcc dot gnu.org 2021-04-12 11:30 ` rguenth at gcc dot gnu.org 2021-04-12 11:34 ` jakub at gcc dot gnu.org 2021-04-13 7:42 ` cvs-commit at gcc dot gnu.org 2021-04-13 7:42 ` jakub at gcc dot gnu.org
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-99648-4-ZNGfPT3oOA@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).