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

Re: [4.0 PATCH, i386]: Fix PR target/20421


Hello!

Eh, "frndintxf2_mask_pm" was accidentaly changed for 4.0 patch. It should only be renamed into "*frndintxf2_mask_pm". The correct pattern should look like:

(define_insn "*frndintxf2_mask_pm"
 [(set (match_operand:XF 0 "register_operand" "=f")
   (unspec:XF [(match_operand:XF 1 "register_operand" "0")]
    UNSPEC_FRNDINT_MASK_PM))
  (use (match_operand:HI 2 "memory_operand" "m"))
  (use (match_operand:HI 3 "memory_operand" "m"))]
 "TARGET_USE_FANCY_MATH_387
  && flag_unsafe_math_optimizations"
 "fldcw\t%3\n\tfrndint\n\tfclex\n\tfldcw\t%2"
 [(set_attr "type" "frndint")
  (set_attr "i387_cw" "mask_pm")
  (set_attr "mode" "XF")])

Uros.


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