https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63639

            Bug ID: 63639
           Summary: m32c cond.md cond_to_int uses -1 for lt and gt
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jon at beniston dot com

The m32c cond_to_int pattern uses (const_int -1) for both less than and greater
than: 

(define_insn "cond_to_int"
  [(set (match_operand:HI 0 "mra_qi_operand" "=Rqi")
    (if_then_else:HI (lt (reg:CC FLG_REGNO) (const_int 0))
             (const_int -1)
             (if_then_else:HI (eq (reg:CC FLG_REGNO) (const_int 0))
                      (const_int 0)
                      (const_int -1))))]

Should the second of these be (const_int 1)?

Reply via email to