*** empty log message ***
authorJeff Law <law@gcc.gnu.org>
Sat, 11 Apr 1992 14:34:44 +0000 (08:34 -0600)
committerJeff Law <law@gcc.gnu.org>
Sat, 11 Apr 1992 14:34:44 +0000 (08:34 -0600)
From-SVN: r725

gcc/config/m68k/m68k.md

index 154eb29deb32284770c7df3d992240e4a70146d0..69b9b436dff513dcd9d09014f866701cf79350df 100644 (file)
   return \"f%&neg%.d %f1,%0\";
 }")
 \f
+;; Sqrt instruction for the 68881
+
+(define_insn "sqrtdf2"
+  [(set (match_operand:DF 0 "general_operand" "=f")
+       (sqrt:DF (match_operand:DF 1 "general_operand" "fm")))]
+  "TARGET_68881"
+  "*
+{
+  if (FP_REG_P (operands[1]))
+    return \"fsqrt%.x %1,%0\";
+  else
+    return \"fsqrt%.d %1,%0\";
+}")
+
 ;; Absolute value instructions
 
 (define_expand "abssf2"