diff options
author | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-13 19:47:30 +0000 |
---|---|---|
committer | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-13 19:47:30 +0000 |
commit | 1c1b50e10144261161350ad7573b206ece0135f6 (patch) | |
tree | e476fa5d605916079ad210bcd6b6d58c66b60f36 /gcc/simplify-rtx.c | |
parent | bd7f520f1f87d23cfb7508455debf38b8c0428d5 (diff) | |
download | gcc-1c1b50e10144261161350ad7573b206ece0135f6.tar.gz |
Fix result of folding of xor operation on two identical vectors.
OKed by Roger Sayle.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index de7ed38afa3..9e02a7a0458 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -1641,7 +1641,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode, if (trueop0 == trueop1 && ! side_effects_p (op0) && GET_MODE_CLASS (mode) != MODE_CC) - return const0_rtx; + return CONST0_RTX (mode); /* Canonicalize XOR of the most significant bit to PLUS. */ if ((GET_CODE (op1) == CONST_INT |