2020-06-30 22:35:55 +02:00
|
|
|
--- gcc-9.2.0.orig/gcc/config/m68k/m68k.md 2019-01-01 07:31:55.000000000 -0500
|
2020-07-02 17:50:26 +02:00
|
|
|
+++ gcc-9.2.0/gcc/config/m68k/m68k.md 2020-07-01 15:57:20.528408009 -0400
|
|
|
|
@@ -4126,13 +4126,13 @@
|
|
|
|
(define_expand "sqrt<mode>2"
|
|
|
|
[(set (match_operand:FP 0 "nonimmediate_operand" "")
|
|
|
|
(sqrt:FP (match_operand:FP 1 "general_operand" "")))]
|
2020-06-30 22:35:55 +02:00
|
|
|
- "TARGET_HARD_FLOAT"
|
2020-07-02 17:50:26 +02:00
|
|
|
+ "(TARGET_68881 && TARGET_68040) || TARGET_COLDFIRE_FPU"
|
|
|
|
"")
|
2020-06-30 22:35:55 +02:00
|
|
|
|
2020-07-02 17:50:26 +02:00
|
|
|
(define_insn "sqrt<mode>2_68881"
|
|
|
|
[(set (match_operand:FP 0 "nonimmediate_operand" "=f")
|
|
|
|
(sqrt:FP (match_operand:FP 1 "general_operand" "f<FP:dreg>m")))]
|
|
|
|
- "TARGET_68881"
|
|
|
|
+ "TARGET_68881 && TARGET_68040"
|
|
|
|
{
|
|
|
|
if (FP_REG_P (operands[1]))
|
|
|
|
return "f<FP:round>sqrt%.x %1,%0";
|