diff options
author | DJ Delorie <dj@redhat.com> | 2001-01-24 16:10:06 -0500 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2001-01-24 16:10:06 -0500 |
commit | 1cac878554696003a686e97187dac03147c1b3a0 (patch) | |
tree | 1ef59c92ecf1e229cd306bc9fc386361957e37f6 /gcc/simplify-rtx.c | |
parent | cedd825f0f18088f7235f02136021bd63a2e12df (diff) | |
download | gcc-1cac878554696003a686e97187dac03147c1b3a0.zip gcc-1cac878554696003a686e97187dac03147c1b3a0.tar.gz gcc-1cac878554696003a686e97187dac03147c1b3a0.tar.bz2 |
combine.c (combine_simplify_rtx): If the modes are all VOIDmode, check the original operand's mode also.
* 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.
From-SVN: r39247
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 9b0f798..82bb8e4 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)); |