(jump_optimize): Only use a REG as a target.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 9 Oct 1992 11:28:00 +0000 (07:28 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 9 Oct 1992 11:28:00 +0000 (07:28 -0400)
From-SVN: r2379

gcc/jump.c

index 21536b199e361f94c10717c11cfe44c218518664..8ed0c9897256fdacfea78aeba58fdd103f620e14 100644 (file)
@@ -1123,7 +1123,9 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
                        {
                          tem2 = expand_unop (GET_MODE (var), one_cmpl_optab,
                                              target, NULL_RTX, 0);
-                         tem2 = expand_and (cval, tem2, tem2);
+                         tem2 = expand_and (cval, tem2,
+                                            (GET_CODE (tem2) == REG
+                                             ? tem2 : 0));
                        }
 
                      /* If we usually make new pseudos, do so here.  This