mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 23:51:08 +08:00
Treat ZERO_EXTEND like SIGN_EXTEND in emit_unop_insn
From-SVN: r13262
This commit is contained in:
parent
8e90e2734e
commit
bd8c4b14b5
@ -2388,9 +2388,10 @@ emit_unop_insn (icode, target, op0, code)
|
||||
|
||||
op0 = protect_from_queue (op0, 0);
|
||||
|
||||
/* Sign extension from memory is often done specially on RISC
|
||||
machines, so forcing into a register here can pessimize code. */
|
||||
if (flag_force_mem && code != SIGN_EXTEND)
|
||||
/* Sign and zero extension from memory is often done specially on
|
||||
RISC machines, so forcing into a register here can pessimize
|
||||
code. */
|
||||
if (flag_force_mem && code != SIGN_EXTEND && code != ZERO_EXTEND)
|
||||
op0 = force_not_mem (op0);
|
||||
|
||||
/* Now, if insn does not accept our operands, put them into pseudos. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user