diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-12 09:20:24 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-12 09:20:24 +0000 |
commit | 115addd6f75b9a540c34a162f151b190e8dd7165 (patch) | |
tree | 2825ba9bc4a7836eeb1065609cf6ffd5ea9ee286 /gcc/combine.c | |
parent | 4bbdff0e049fe48cbc3250b586445148824ce1ed (diff) | |
download | gcc-115addd6f75b9a540c34a162f151b190e8dd7165.tar.gz |
* combine.c (combine_simplify_rtx): Don't pass VOIDmode to
simplify_unary_operation if the operand has a known mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 2c92d247aa8..db139fe9bbb 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3690,6 +3690,8 @@ combine_simplify_rtx (rtx x, enum machine_mode op0_mode, int last, switch (GET_RTX_CLASS (code)) { case '1': + if (op0_mode == VOIDmode) + op0_mode = GET_MODE (XEXP (x, 0)); temp = simplify_unary_operation (code, mode, XEXP (x, 0), op0_mode); break; case '<': |