Commit 4013a709 by Richard Kenner

(optimize_bit_field): Don't remove a SUBREG that changes mode class.

From-SVN: r8744
parent 52a1f21f
/* Expands front end tree to back end RTL for GNU C-Compiler /* Expands front end tree to back end RTL for GNU C-Compiler
Copyright (C) 1987, 88, 89, 91, 92, 93, 1994 Free Software Foundation, Inc. Copyright (C) 1987, 88, 89, 91-94, 1995 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -2318,7 +2318,9 @@ optimize_bit_field (body, insn, equiv_mem) ...@@ -2318,7 +2318,9 @@ optimize_bit_field (body, insn, equiv_mem)
rtx dest = SET_DEST (body); rtx dest = SET_DEST (body);
while (GET_CODE (dest) == SUBREG while (GET_CODE (dest) == SUBREG
&& SUBREG_WORD (dest) == 0) && SUBREG_WORD (dest) == 0
&& (GET_MODE_CLASS (GET_MODE (dest))
== GET_MODE_CLASS (GET_MODE (SUBREG_REG (dest)))))
dest = SUBREG_REG (dest); dest = SUBREG_REG (dest);
validate_change (insn, &SET_DEST (body), dest, 1); validate_change (insn, &SET_DEST (body), dest, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment