https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117248

--- Comment #16 from John David Anglin <danglin at gcc dot gnu.org> ---
Things are improved but a similar error occurs in the second umod:SI
call in /testsuite/gcc.c-torture/execute/arith-rand-ll.c:

(insn 339 337 341 31 (parallel [
            (set (reg:SI 29 %r29)
                (div:SI (reg:SI 26 %r26)
                    (reg:SI 25 %r25)))
            (clobber (reg:SI 1 %r1))
            (clobber (reg:SI 26 %r26))
            (clobber (reg:SI 25 %r25))
            (clobber (reg:SI 31 %r31))
        ])
"/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/arith-ran
d-ll.c":97:10 130 {*pa.md:5754}
     (expr_list:REG_DEAD (reg:SI 26 %r26)
        (expr_list:REG_DEAD (reg:SI 25 %r25)
            (expr_list:REG_UNUSED (reg:SI 31 %r31)
                (expr_list:REG_UNUSED (reg:SI 26 %r26)
                    (expr_list:REG_UNUSED (reg:SI 25 %r25)
                        (expr_list:REG_UNUSED (reg:SI 1 %r1)
                            (expr_list:REG_EQUAL (div:SI (reg:SI 114 [ _19 ])
                                    (reg/v:SI 158 [ yy+-2 ]))
                                (nil)))))))))
(insn 341 339 668 31 (set (reg:SI 26 %r26)
        (reg:SI 114 [ _19 ]))
"/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/arith-rand-ll.c":98:10
42 {*pa.md:2195}
     (expr_list:REG_DEAD (reg:SI 114 [ _19 ])
        (nil)))
(insn 668 341 342 31 (set (reg:SI 457 [ _21 ])
        (reg:SI 29 %r29))
"/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/arith-rand-ll.c":97:10
42 {*pa.md:2195}
     (expr_list:REG_DEAD (reg:SI 29 %r29)
        (nil)))
(insn 342 668 343 31 (set (reg:SI 25 %r25)
        (reg/v:SI 158 [ yy+-2 ]))
"/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/arith-rand-ll.c":98:10
42 {*pa.md:2195}
     (nil))
(insn 343 342 669 31 (parallel [
            (set (reg:SI 29 %r29)
                (mod:SI (reg:SI 26 %r26)
                    (reg:SI 25 %r25)))
            (clobber (reg:SI 1 %r1))
            (clobber (reg:SI 26 %r26))
            (clobber (reg:SI 25 %r25))
            (clobber (reg:SI 31 %r31))
        ])
"/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/arith-rand-ll.c":98:10
132 {*pa.md:5846}
     (expr_list:REG_DEAD (reg:SI 26 %r26)
        (expr_list:REG_DEAD (reg:SI 25 %r25)
            (expr_list:REG_UNUSED (reg:SI 31 %r31)
                (expr_list:REG_UNUSED (reg:SI 26 %r26)
                    (expr_list:REG_UNUSED (reg:SI 25 %r25)
                        (expr_list:REG_UNUSED (reg:SI 1 %r1)
                            (nil))))))))

Insn 341 is dropped in the reload pass.

 /home/dave/gnu/gcc/objdir/gcc/cc1 -fpreprocessed ./arith-rand-ll.i -quiet -da
-dumpdir ./ -dumpbase arith-rand-ll.c -dumpbase-ext .c -O3 -w -version
-fdiagnostics-color=never -fdiagnostics-urls=never -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-path-format=separate-events
-fdiagnostics-text-art-charset=none -fno-diagnostics-show-event-links
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions -o
./arith-rand-ll.s

Reply via email to