0021-m68k-sqrt.diff 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- gcc-9.2.0.orig/gcc/config/m68k/m68k.md 2019-01-01 07:31:55.000000000 -0500
  2. +++ gcc-9.2.0/gcc/config/m68k/m68k.md 2020-06-30 15:56:20.061868526 -0400
  3. @@ -4121,35 +4121,6 @@
  4. return "f<FP:prec>neg%.<FP:prec> %1,%0";
  5. })
  6. -;; Sqrt instruction for the 68881
  7. -
  8. -(define_expand "sqrt<mode>2"
  9. - [(set (match_operand:FP 0 "nonimmediate_operand" "")
  10. - (sqrt:FP (match_operand:FP 1 "general_operand" "")))]
  11. - "TARGET_HARD_FLOAT"
  12. - "")
  13. -
  14. -(define_insn "sqrt<mode>2_68881"
  15. - [(set (match_operand:FP 0 "nonimmediate_operand" "=f")
  16. - (sqrt:FP (match_operand:FP 1 "general_operand" "f<FP:dreg>m")))]
  17. - "TARGET_68881"
  18. -{
  19. - if (FP_REG_P (operands[1]))
  20. - return "f<FP:round>sqrt%.x %1,%0";
  21. - return "f<FP:round>sqrt%.<FP:prec> %1,%0";
  22. -}
  23. - [(set_attr "type" "fsqrt")])
  24. -
  25. -(define_insn "sqrt<mode>2_cf"
  26. - [(set (match_operand:FP 0 "nonimmediate_operand" "=f")
  27. - (sqrt:FP (match_operand:FP 1 "general_operand" "f<FP:dreg><Q>U")))]
  28. - "TARGET_COLDFIRE_FPU"
  29. -{
  30. - if (FP_REG_P (operands[1]))
  31. - return "f<FP:prec>sqrt%.d %1,%0";
  32. - return "f<FP:prec>sqrt%.<FP:prec> %1,%0";
  33. -}
  34. - [(set_attr "type" "fsqrt")])
  35. ;; Absolute value instructions
  36. ;; If using software floating point, just zero the sign bit.