+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
[(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")