]> gcc.gnu.org Git - gcc.git/commitdiff
Treat ZERO_EXTEND like SIGN_EXTEND in emit_unop_insn
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Dec 1996 20:56:07 +0000 (20:56 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Dec 1996 20:56:07 +0000 (20:56 +0000)
From-SVN: r13262

gcc/optabs.c

index d743fc8bd5ecbaa97d61e74eb93542b69ab3c56c..22a9d2a720fc4464bf76168f4d52dcce31f7b804 100644 (file)
@@ -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.  */
This page took 0.061815 seconds and 5 git commands to generate.