OSDN Git Service

(alpha_emit_set_const): Don't call expand_binop for other than add if
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 May 1995 11:11:49 +0000 (11:11 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 May 1995 11:11:49 +0000 (11:11 +0000)
SImode and can't create pseudos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9815 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/alpha/alpha.c

index 8611856..c0c6f07 100644 (file)
@@ -728,9 +728,12 @@ alpha_emit_set_const (target, mode, c, n)
     }
 
   /* If we couldn't do it that way, try some other methods.  But if we have
-     no instructions left, don't bother.  */
+     no instructions left, don't bother.  Likewise, if this is SImode and
+     we can't make pseudos, we can't do anything since the expand_binop
+     and expand_unop calls will widen and try to make pseudos.  */
 
-  if (n == 1)
+  if (n == 1
+      || (mode == SImode && ! rtx_equal_function_value_matters))
     return 0;
 
 #if HOST_BITS_PER_WIDE_INT == 64