aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-09-09 19:34:27 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-09-09 19:34:27 +0000
commit808788fe76ea59fde5fec1d3e6a79a143249b3c0 (patch)
tree2c7517c4031636fa5203701e588c0e04afecf9ba /gcc/recog.c
parent0caae6ddb81f8c027e4582e172c0abfdaf108df2 (diff)
downloadgcc-808788fe76ea59fde5fec1d3e6a79a143249b3c0.zip
gcc-808788fe76ea59fde5fec1d3e6a79a143249b3c0.tar.gz
gcc-808788fe76ea59fde5fec1d3e6a79a143249b3c0.tar.bz2
recog.c (validate_replace_rtx_1): Correct MODE parameter in call to operand_subword.
* recog.c (validate_replace_rtx_1): Correct MODE parameter in call to operand_subword. From-SVN: r36281
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index 7f35c9f..87f8137 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -505,7 +505,7 @@ validate_replace_rtx_1 (loc, from, to, object)
&& GET_MODE_CLASS (GET_MODE (x)) == MODE_INT)
{
rtx temp = operand_subword (to, SUBREG_WORD (x),
- 0, GET_MODE (x));
+ 0, GET_MODE (from));
if (temp)
{
validate_change (object, loc, temp, 1);