diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-24 21:10:06 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-24 21:10:06 +0000 |
commit | ec68004d244c64080b8531785cc2dd6e671c84b6 (patch) | |
tree | 1ef59c92ecf1e229cd306bc9fc386361957e37f6 /gcc/simplify-rtx.c | |
parent | 28dc8344238a39d0777e87a43f0252c9856ea198 (diff) | |
download | gcc-ec68004d244c64080b8531785cc2dd6e671c84b6.tar.gz |
* combine.c (combine_simplify_rtx): If the modes are all VOIDmode,
check the original operand's mode also.
* simplify-rtx.c (simplify_ternary_operation): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 9b0f79876dd..82bb8e40024 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -2057,6 +2057,8 @@ simplify_ternary_operation (code, mode, op0_mode, op0, op1, op2) enum machine_mode cmp_mode = (GET_MODE (XEXP (op0, 0)) == VOIDmode ? GET_MODE (XEXP (op0, 1)) : GET_MODE (XEXP (op0, 0))); + if (cmp_mode == VOIDmode) + cmp_mode = op0_mode; rtx temp = simplify_relational_operation (GET_CODE (op0), cmp_mode, XEXP (op0, 0), XEXP (op0, 1)); |