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]

Useless clobber?


   I found the following pattern in a .md file:

----------------------------------------------------------------------------
(define_insn ""
  [(set (match_operand:SI 0 "register_operand" "=d")
        (mult:SI
          (zero_extend:SI
            (match_operand:HI 1 "register_operand" "d"))
          (zero_extend:SI
            (match_operand 2 "register_operand" "d"))))
   ( clobber (match_operand:SI 3 "register_operand" "d"))]
  ""
  "impyuu\\t%1,%2,%0")
----------------------------------------------------------------------------

   I cannot comunicate with the guys that wrote the machine description(I
don't know how to contact them), but placing the clobber in this pattern
seems stupid to me.
   On the other hand, I thought there might be a reason for this cloober to
be placed there, but I cannot think of any possible reason. Could anybody
who knows more about machine descriptions give me such a reason (or tell me
that it is safe to remove it) ?

Thanx.
  Virgil


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