Illegal insn due to system register

Rakesh Kumar - Software, Noida rakeshku@noida.hcltech.com
Tue May 20 11:06:00 GMT 2003


Hi,

On compiling the attached file(derived from PR-10052) for SH4, I get the
following error:

BUG.i:1009: error: insn does not satisfy its constraints:
(insn:HI 559 558 2108 15 0x40105604 (set (reg/v:SI 76 fr12 [orig:167 dmax ]
[167])
        (reg:SI 149 macl)) 123 {movsi_ie} (insn_list 558 (nil))
    (expr_list:REG_EQUAL (mult:SI (reg/v:SI 9 r9 [orig:164 itm ] [164])
            (reg/v:SI 9 r9 [orig:164 itm ] [164]))
        (nil)))
BUG.i:1009: internal compiler error: in reload_cse_simplify_operands, at
reload1.c:8356

I suppose it is because MACL is being loaded into the floating point
register. The patch posted by Joern on 12th Dec, 2002 makes it possible for
SI mode values to be loaded into floating point registers. The link for the
patch is:

http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00670.html

This does not cause any problem till the source register in any insn is not
a system register. As we see, in the above insn, the source is MACL and
destination is fr12. The insn being handled in SI mode, does not satisfy
constraints.


Any suggestions?


Regards and Thanks,
Rakesh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: BUG.i
Type: application/octet-stream
Size: 27448 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20030520/d146b66f/attachment.obj>


More information about the Gcc-bugs mailing list