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]
Other format: [Raw text]

how to force reloader(?) to respect clobber directive?


Fellows,

I define:


(define_insn "tstsi"
  [(set (cc0) (match_operand:SI 0 "register_operand" "r"))
        (clobber (match_dup 0))]
  ""
  "* return msp430_emit_tstsi(insn, operands, NULL);"
[(set_attr "length" "2")
 (set_attr "cc" "compare")])

Compiler produces a code in which 0 operand clobbered and used after this insn as being saved.

Should I define something extra to say to gcc to threat 0 operand as clobbered after insn?

Thanks,
~d


*********************************************************************
   ("`-''-/").___..--''"`-._     (\       Dimmy the Wild      UA1ACZ
    `6_ 6  )   `-.  (     ).`-.__.`)      Enterprise Information Sys 
    (_Y_.)'  ._   )  `._ `. ``-..-'       Nevsky prospekt,   20 / 44
  _..`--'_..-_/  /--'_.' ,'               Saint Petersburg,   Russia
 (il),-''  (li),'  ((!.-'                 +7 (812) 314-8860, 5585314
*********************************************************************


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