public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/45223]  New: RTL PRE GCSE pass hoists trapping insn out of loop
@ 2010-08-07  8:24 ubizjak at gmail dot com
  2010-08-07  8:34 ` [Bug rtl-optimization/45223] " ubizjak at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2010-08-07  8:24 UTC (permalink / raw)
  To: gcc-bugs

This is a follow-up from PR38819 which partially fixes this problem. The
problem remains in RTL optimization passes, and can be triggered on targets
that implement modulo instruction in the hardware (i.e. moxie-elf).

The testcase from PR38819 compiles with -O2 to:

main:
        push   $sp, $r6
        push   $sp, $r7
        push   $sp, $r8
        push   $sp, $r9
        push   $sp, $r10
        push   $sp, $r11
        dec    $sp, 24
        lda.l  $r7, a
        lda.l  $r0, b
        xor    $r6, $r6
        ldi.l  $r11, foo
>	mod.l  $r7, $r0
        ldi.l  $r10, 8
        ldi.l  $r8, 99
        jmpa   .L4
.L3:
        ...

Since b is initialized to zero, mod.l instruction traps.


-- 
           Summary: RTL PRE GCSE pass hoists trapping insn out of loop
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ubizjak at gmail dot com
GCC target triplet: moxie-elf


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-10-11  9:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45223-4@http.gcc.gnu.org/bugzilla/>
2021-10-11  3:44 ` [Bug rtl-optimization/45223] RTL PRE GCSE pass hoists trapping insn out of loop pinskia at gcc dot gnu.org
2021-10-11  9:11 ` rguenth at gcc dot gnu.org
2010-08-07  8:24 [Bug rtl-optimization/45223] New: " ubizjak at gmail dot com
2010-08-07  8:34 ` [Bug rtl-optimization/45223] " ubizjak at gmail dot com
2010-08-07  8:40 ` ubizjak at gmail dot com
2010-08-07 10:58 ` steven at gcc dot gnu dot org
2010-08-07 11:26 ` ubizjak at gmail dot com
2010-08-07 15:27 ` ubizjak at gmail dot com
2010-08-12 14:46 ` ubizjak at gmail dot com
2010-09-04 10:03 ` ubizjak at gmail dot com

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).