This is the mail archive of the gcc@gcc.gnu.org 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]

Re: Reload pass clobbers cc0


 In message <20000817022907.B2829@avalon.research.wombat.ie>you write:
  > The modified one look like:
  > 
  >    (define_insn "sgeu"
  >      [(set (match_operand:SI 0 "general_operand" "=ro,<>")
  >            (geu (cc0) (const_int 0)))]
  >      ""
  >      "@
  >       movl $1,%0\;sbwc $0,%0
  >       bgequ 1f\;clrl %0\;brb 2f\;1f: movl $1, %0\;2f:")
  > 
  > I think this should catch everything.
  > 
  > Now, it would be nice if these insns could be flagged as
  > 'never reload' or 'trigger internal compiler error if
  > reloaded'.
If an insn which uses cc0 ever needs an input reload, the compiler will
abort.  Which would include your modified sgeu.  

jeff


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