From dd2cc343574538ab81669faf74a40ee1130cd514 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 9 Oct 1992 07:28:00 -0400 Subject: [PATCH] (jump_optimize): Only use a REG as a target. From-SVN: r2379 --- gcc/jump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/jump.c b/gcc/jump.c index 21536b199e3..8ed0c989725 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -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 -- 2.30.2