From: Uros Bizjak Date: Fri, 5 Oct 2018 18:59:04 +0000 (+0200) Subject: * config/i386/i386.md: Reorder cmpi patterns. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f58c814c0ade165b1691d79a79843ea31d6428b;p=gcc.git * config/i386/i386.md: Reorder cmpi patterns. From-SVN: r264886 --- diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 7c440a4ed50..7fb2b144f47 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1562,6 +1562,20 @@ [(match_dup 1)] UNSPEC_NOTRAP))]) +(define_insn "*cmpixf_i387" + [(set (reg:CCFP FLAGS_REG) + (compare:CCFP + (match_operand:XF 0 "register_operand" "f") + (match_operand:XF 1 "register_operand" "f")))] + "TARGET_80387 && TARGET_CMOVE" + "* return output_fp_compare (insn, operands, true, );" + [(set_attr "type" "fcmp") + (set_attr "mode" "XF") + (set_attr "athlon_decode" "vector") + (set_attr "amdfam10_decode" "direct") + (set_attr "bdver1_decode" "double") + (set_attr "znver1_decode" "double")]) + (define_insn "*cmpi" [(set (reg:CCFP FLAGS_REG) (compare:CCFP @@ -1598,20 +1612,6 @@ (eq_attr "alternative" "0") (symbol_ref "true") (symbol_ref "false"))))]) - -(define_insn "*cmpixf_i387" - [(set (reg:CCFP FLAGS_REG) - (compare:CCFP - (match_operand:XF 0 "register_operand" "f") - (match_operand:XF 1 "register_operand" "f")))] - "TARGET_80387 && TARGET_CMOVE" - "* return output_fp_compare (insn, operands, true, );" - [(set_attr "type" "fcmp") - (set_attr "mode" "XF") - (set_attr "athlon_decode" "vector") - (set_attr "amdfam10_decode" "direct") - (set_attr "bdver1_decode" "double") - (set_attr "znver1_decode" "double")]) ;; Push/pop instructions.