summaryrefslogtreecommitdiffstats
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-27 09:39:00 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-27 09:39:00 +0000
commit76dada20963c9ff4402936019f1c257d63061d11 (patch)
tree3c855f7b17093b28bc0452f6bb3ffd09773bdd73 /gcc/combine.c
parent35147e2aa69d674aed8256709dc7475772645df1 (diff)
downloadppe42-gcc-76dada20963c9ff4402936019f1c257d63061d11.tar.gz
ppe42-gcc-76dada20963c9ff4402936019f1c257d63061d11.zip
PR rtl-optimization/17825
* combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new) or not. * gcc.c-torture/compile/20041119-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index ce198bbc10a..181a33e7590 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3556,10 +3556,10 @@ subst (rtx x, rtx from, rtx to, int in_dest, int unique_copy)
/* If this is a register being set, ignore it. */
new = XEXP (x, i);
if (in_dest
- && (code == SUBREG || code == STRICT_LOW_PART
- || code == ZERO_EXTRACT)
&& i == 0
- && REG_P (new))
+ && (((code == SUBREG || code == ZERO_EXTRACT)
+ && REG_P (new))
+ || code == STRICT_LOW_PART))
;
else if (COMBINE_RTX_EQUAL_P (XEXP (x, i), from))
OpenPOWER on IntegriCloud