i386.md (*<absneg:code>extendsfdf2): Remove.
authorUros Bizjak <ubizjak@gmail.com>
Wed, 3 Oct 2018 18:28:16 +0000 (20:28 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 3 Oct 2018 18:28:16 +0000 (20:28 +0200)
* config/i386/i386.md (*<absneg:code>extendsfdf2): Remove.
(*<absneg:code>extend<mode>xf2): Ditto.

From-SVN: r264818

gcc/ChangeLog
gcc/config/i386/i386.md

index 30d7e775c61127b8f386f66313bbf2b1c908f17f..c0224e067b09dc89c1decc03e89aaebcdb708f7a 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-03  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (*<absneg:code>extendsfdf2): Remove.
+       (*<absneg:code>extend<mode>xf2): Ditto.
+
 2018-10-03  Aldy Hernandez  <aldyh@redhat.com>
 
        PR tree-optimization/87415
index 367e9bfe255b32141e915ed3245c6d7e29168e23..9aa276a9576b57132c2993f1d3ff87471ed9e98b 100644 (file)
 (define_code_iterator absneg [abs neg])
 
 ;; Base name for x87 insn mnemonic.
-(define_code_attr absneg_mnemonic [(abs "abs") (neg "chs")])
+(define_code_attr absneg_mnemonic [(abs "fabs") (neg "fchs")])
 
 ;; Used in signed and unsigned widening multiplications.
 (define_code_iterator any_extend [sign_extend zero_extend])
   "TARGET_80387
    && (reload_completed
        || !(SSE_FLOAT_MODE_P (<MODE>mode) && TARGET_SSE_MATH))"
-  "f<absneg_mnemonic>"
+  "<absneg_mnemonic>"
   [(set_attr "type" "fsgn")
    (set_attr "mode" "<MODE>")])
 
-(define_insn "*<code>extendsfdf2"
-  [(set (match_operand:DF 0 "register_operand" "=f")
-       (absneg:DF (float_extend:DF
-                    (match_operand:SF 1 "register_operand" "0"))))]
-  "TARGET_80387 && (!TARGET_SSE_MATH || TARGET_MIX_SSE_I387)"
-  "f<absneg_mnemonic>"
-  [(set_attr "type" "fsgn")
-   (set_attr "mode" "DF")])
-
-(define_insn "*<code>extend<mode>xf2"
-  [(set (match_operand:XF 0 "register_operand" "=f")
-       (absneg:XF (float_extend:XF
-                    (match_operand:MODEF 1 "register_operand" "0"))))]
-  "TARGET_80387"
-  "f<absneg_mnemonic>"
-  [(set_attr "type" "fsgn")
-   (set_attr "mode" "XF")])
-
 ;; Copysign instructions
 
 (define_mode_iterator CSGNMODE [SF DF TF])