This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help needed on "insn does not satisfy its constraints"
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: ashwani at isofttech dot com
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 28 Jan 2004 00:56:56 -0500 (EST)
- Subject: Re: Help needed on "insn does not satisfy its constraints"
- References: <1075267069.3666.13.camel@localhost.localdomain>
Hi Ashwani,
> nfsmount.c: In function `nfsmount':
> nfsmount.c:828: internal error--insn does not satisfy its constraints:
> (insn 3361 1679 3363 (set (mem:SI (plus:SI (reg:SI 15 FP)
> (const_int -2216 [0xfffff758])) 0)
> (reg:SI 16 I0)) 8 {*movsi_insn} (nil)
> (nil))
Does your architecture actually have an instruction to move a constant
to a memory location without going through a temporary register?
Looking at nisa.md, I am guessing not. The attached patch may let you
work around the problem, but no guarantee as I don't know the
architecture.
Kazu Hirata
--- nisa.md.orig 2004-01-28 00:44:28.546199399 -0500
+++ nisa.md 2004-01-28 00:45:48.746098717 -0500
@@ -226,7 +226,8 @@
[(set (match_operand:SI 0 "general_operand" "=bcf, da, mda, e, da, !d, !C")
(match_operand:SI 1 "general_operand" "idabcf, iMmbcf, da, ade, e, C, d"))]
- ""
+ "register_operand (operands[0], SImode)
+ || register_operand (operands[1], SImode)"
"*
{ output_load_immediate (operands); }
"