i386.md (*<code>extend<mode>xf2): Macroize insn from *<code>extendsfxf2 and *<code...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 18 Sep 2018 15:51:54 +0000 (17:51 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 18 Sep 2018 15:51:54 +0000 (17:51 +0200)
* config/i386/i386.md (*<code>extend<mode>xf2): Macroize insn from
*<code>extendsfxf2 and *<code>extenddfxf2 using MODEF mode iterator.

From-SVN: r264398

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

index 33cc32ff90eb7ab32128c1950a2aacf480a31a78..a0e9093ff323a012c1548477618df03b9e0f3383 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-18  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (*<code>extend<mode>xf2): Macroize insn from
+       *<code>extendsfxf2 and *<code>extenddfxf2 using MODEF mode iterator.
+
 2018-09-18  Jonathan Wakely  <jwakely@redhat.com>
 
        PR other/87353
index 869ff5930eb4942e92b798bfb78f3649efbfdab5..e08b2b7c14bfedb288651f238e7ca115fafbcacf 100644 (file)
   [(set_attr "type" "fsgn")
    (set_attr "mode" "DF")])
 
-(define_insn "*<code>extendsfxf2"
+(define_insn "*<code>extend<mode>xf2"
   [(set (match_operand:XF 0 "register_operand" "=f")
        (absneg:XF (float_extend:XF
-                    (match_operand:SF 1 "register_operand" "0"))))]
-  "TARGET_80387"
-  "f<absneg_mnemonic>"
-  [(set_attr "type" "fsgn")
-   (set_attr "mode" "XF")])
-
-(define_insn "*<code>extenddfxf2"
-  [(set (match_operand:XF 0 "register_operand" "=f")
-       (absneg:XF (float_extend:XF
-                    (match_operand:DF 1 "register_operand" "0"))))]
+                    (match_operand:MODEF 1 "register_operand" "0"))))]
   "TARGET_80387"
   "f<absneg_mnemonic>"
   [(set_attr "type" "fsgn")