This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/62262] aarch64 gcc generates invalid assembler
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Aug 2014 01:03:06 +0000
- Subject: [Bug target/62262] aarch64 gcc generates invalid assembler
- Auto-submitted: auto-generated
- References: <bug-62262-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62262
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-08-26
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(insn 27 26 40 5 (set (reg:SI 73 [ D.2590 ])
(and:SI (ashift:SI (reg/v:SI 74 [ value ])
(const_int 32 [0x20]))
(const_int 8388607 [0x7fffff]))) t7.c:13 611 {*andim_ashiftsi_bfiz}
(expr_list:REG_DEAD (reg/v:SI 74 [ value ])
(nil)))
Confirmed.
"exact_log2 ((INTVAL (operands[3]) >> INTVAL (operands[2])) + 1) >= 0
&& (INTVAL (operands[3]) & ((1 << INTVAL (operands[2])) - 1)) == 0"
In fact we invoke undefined behavior inside the compiler too due to the shift
there.