This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help needed on "insn does not satisfy its constraints"

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, I am guessing not.  The attached patch may let you
work around the problem, but no guarantee as I don't know the

Kazu Hirata

---	2004-01-28 00:44:28.546199399 -0500
+++	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); }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]