This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/46915] Wrong code is generated for conditional branch followed by zero length asm


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46915

--- Comment #9 from dave at hiauly1 dot hia.nrc.ca 2010-12-13 12:44:21 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.

Thanks, I'll look at that.  However, I think branch_to_delay_slot_p can
be improved.  It probably should also check for asms and return FALSE
if it finds one.

Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]