OSDN Git Service

PR target/46739
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2010 18:15:09 +0000 (18:15 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2010 18:15:09 +0000 (18:15 +0000)
        * config/mmix/mmix.c (mmix_intval): Split shift count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167509 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mmix/mmix.c

index c5c988b..0eb96a6 100644 (file)
@@ -20,6 +20,9 @@
        (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
        (frv_split_cond_move, frv_rtx_costs): Likewise.
 
+       PR target/46739
+       * config/mmix/mmix.c (mmix_intval): Split shift count.
+
 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/i386/i386.c (m_COREI7): New.
index c080116..c96fdcb 100644 (file)
@@ -2747,7 +2747,7 @@ mmix_intval (rtx x)
 
          retval |=
            (unsigned HOST_WIDEST_INT) CONST_DOUBLE_HIGH (x)
-             << (HOST_BITS_PER_LONG);
+             << (HOST_BITS_PER_LONG)/2 << (HOST_BITS_PER_LONG)/2;
        }
       else
        retval = CONST_DOUBLE_HIGH (x);