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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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); }
   "

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux