Reload problem, advice required

Ulrich Weigand weigand@i1.informatik.uni-erlangen.de
Sat Sep 11 10:48:00 GMT 2004


Jon Beniston wrote:

>(insn 4 936 932 0
>/home/Jon/build-gcc2/excess-elf/mall-enabled/libstdc++-v3/include/bits/istre
>am.tcc:865 (parallel [
>            (set (mem/s:HI (reg:HI 1 ra) [52 __pos+0 S2 A16])
>                (reg:HI 5 r5))
>            (set (mem/s:HI (plus:HI (reg/f:HI 229)
>                        (const_int 2 [0x2])) [52 __pos+2 S2 A16])
>                (reg:HI 6 r6))
>            (set (mem/s:HI (plus:HI (reg/f:HI 229)
>                        (const_int 4 [0x4])) [52 __pos+4 S2 A16])
>                (reg:HI 7 r7))
>        ]) 26 {*sm} (insn_list 875 (nil))
>    (nil))

I assume this is a store-multiple pattern that uses a 
match_parallel with only the first operand explicitly
matched by a match_operand?  It is a known problem that
reload doesn't handle such patterns correctly; in some
cases, register replacements are performed only in the
operand explicitly matches, not in the implicit operands
allowed by the match_parallel.

This is apparently difficult to fix; all back-ends using
load/store multiple patterns currently work around the
problem by either disabling them until after reload (so
that the prolog/epilog expanders can still use them),
like s390, or by having not one single match_parallel
pattern but multiple separate patterns, one for each
number of registers, like rs6000.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de



More information about the Gcc mailing list