* config/i386/i386.md: Reorder cmpi patterns.
authorUros Bizjak <uros@gcc.gnu.org>
Fri, 5 Oct 2018 18:59:04 +0000 (20:59 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 5 Oct 2018 18:59:04 +0000 (20:59 +0200)
From-SVN: r264886

gcc/config/i386/i386.md

index 7c440a4ed500ebe2d91db230f511f5ae5b9b9a2a..7fb2b144f4780cc8dfb7529e61bfd4c0e1701409 100644 (file)
          [(match_dup 1)]
          UNSPEC_NOTRAP))])
 
+(define_insn "*cmpi<unord>xf_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, <unordered>);"
+  [(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<unord><MODEF:mode>"
   [(set (reg:CCFP FLAGS_REG)
        (compare:CCFP
         (eq_attr "alternative" "0")
         (symbol_ref "true")
         (symbol_ref "false"))))])
-
-(define_insn "*cmpi<unord>xf_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, <unordered>);"
-  [(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")])
 \f
 ;; Push/pop instructions.