This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46915] Wrong code is generated for conditional branch followed by zero length asm
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Dec 2010 10:59:37 +0000
- Subject: [Bug target/46915] Wrong code is generated for conditional branch followed by zero length asm
- Auto-submitted: auto-generated
- References: <bug-46915-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46915
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-13 10:59:28 UTC ---
Yeah, the insn count for asm is just a guess. You should never put inline asm
into a delay slot, you really don't know how big it is or if it is suitable for
the delay slot.
I guess the bug is in checking just for ASM_INPUT, that should be also testing
extract_asm_operands () != NULL_RTX.