This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix target/11260


Hi,

this fixes target/11260. Note that the bug cannot manifest on
mainline, since sqrt(0.0) always gets folded away. Tested with 3.3
branch on alphaev68-unknown-linux-gnu. No test case, since
builtins-3.c already contains one.

2003-06-20  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>

        PR target/11260
	* config/alpha/alpha.md (sqrtdf2): Fix operand substitution.

Index: alpha.md
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/alpha/alpha.md,v
retrieving revision 1.199.4.3
diff -u -p -r1.199.4.3 alpha.md
--- alpha.md    30 Mar 2003 19:02:56 -0000      1.199.4.3
+++ alpha.md    20 Jun 2003 01:35:17 -0000
@@ -2876,7 +2876,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
   [(set (match_operand:DF 0 "register_operand" "=f")
        (sqrt:DF (match_operand:DF 1 "reg_or_0_operand" "fG")))]
   "TARGET_FP && TARGET_FIX"
-  "sqrt%-%/ %1,%0"
+  "sqrt%-%/ %R1,%0"
   [(set_attr "type" "fsqrt")
    (set_attr "trap" "yes")
    (set_attr "round_suffix" "normal")

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]