From 1f58c814c0ade165b1691d79a79843ea31d6428b Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 5 Oct 2018 20:59:04 +0200 Subject: [PATCH] * config/i386/i386.md: Reorder cmpi patterns. From-SVN: r264886 --- gcc/config/i386/i386.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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.