diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-17 08:46:16 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-17 08:46:16 +0000 |
commit | 9f484185af054bcf345c2859d862056e6d8d21eb (patch) | |
tree | f92bb1a3fc127f78ad307e0ca9da5c8aac5a2d7d /gcc/expr.c | |
parent | 83fb22d2ea6950cfffeb54630e3164f7d657fe34 (diff) | |
download | gcc-9f484185af054bcf345c2859d862056e6d8d21eb.tar.gz |
* expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
instead of x as last gen_lowpart argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206040 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index cde0b859421..1c5658923bd 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -719,7 +719,7 @@ convert_modes (enum machine_mode mode, enum machine_mode oldmode, rtx x, int uns if (GET_CODE (x) == SUBREG && SUBREG_PROMOTED_VAR_P (x) && GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))) >= GET_MODE_SIZE (mode) && SUBREG_PROMOTED_UNSIGNED_P (x) == unsignedp) - x = gen_lowpart (mode, x); + x = gen_lowpart (mode, SUBREG_REG (x)); if (GET_MODE (x) != VOIDmode) oldmode = GET_MODE (x); |