Author: yiran
Date: 2010-09-23 20:57:29 -0400 (Thu, 23 Sep 2010)
New Revision: 3359

Modified:
   trunk/osprey/wgen/wgen_expr.cxx
Log:
fix of bug633. It is to set default type of sqrt to F8. Reviewed by Sun, 
Murthy, and Jian-Xin.

Modified: trunk/osprey/wgen/wgen_expr.cxx
===================================================================
--- trunk/osprey/wgen/wgen_expr.cxx     2010-09-23 19:16:49 UTC (rev 3358)
+++ trunk/osprey/wgen/wgen_expr.cxx     2010-09-24 00:57:29 UTC (rev 3359)
@@ -8153,6 +8153,7 @@
 #ifndef TARG_MIPS  // MIPS needs quad emulation for sqrt operation
               case GSBI_BUILT_IN_SQRTL:
 #endif
+               if (ret_mtype == MTYPE_V) ret_mtype = MTYPE_F8;
                if (! gs_flag_errno_math(program)) {
                  arg_wn = WGEN_Expand_Expr (gs_tree_value (gs_tree_operand 
(exp, 1)));
                  wn = WN_CreateExp1 (OPR_SQRT, ret_mtype, MTYPE_V, arg_wn);


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to