PR opt/10392: Reload bug on SH

tm_gccmail@mail.kloo.net tm_gccmail@mail.kloo.net
Mon Sep 29 22:52:00 GMT 2003


I tried your patch mentioned in:

http://gcc.gnu.org/ml/gcc-patches/2003-09/msg01083.html

This seems to cause a failure on stress-1.17/layer3.i,
compiled with -O2 -m4:

layer3.i: In function `III_dequantize_sample':

layer3.i:3515: error: insn does not satisfy its constraints:
(insn:HI 337 2471 2472 23 (set (mem/s:SI (plus:SI (reg:SI 2 r2)
                (reg:SI 0 r0)) [5 max S4 A32])
        (mem:SI (plus:SI (reg/f:SI 14 r14)
                (const_int 72 [0x48])) [167 cb+0 S4 A32])) 123 {movsi_ie}
(insn_list 335 (nil))
    (nil))
layer3.i:3515: internal compiler error: in reload_cse_simplify_operands,
at postreload.c:378

Evidently, it causes a memory-to-memory insn to be generated, which
doesn't exist on the SH4...

Testcase is available if you need it.

Toshi




More information about the Gcc-patches mailing list