From: Georg-Johann Lay Date: Thu, 16 Jun 2011 09:32:18 +0000 (+0000) Subject: libgcc.S (__ashldi3, [...]): Set shift truncation mask to 63. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbd05da019f5006cc9ca83633f69d1d28c82f14b;p=gcc.git libgcc.S (__ashldi3, [...]): Set shift truncation mask to 63. * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift truncation mask to 63. From-SVN: r175099 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6815f5ef58..e02c407be57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-16 Georg-Johann Lay + + * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift + truncation mask to 63. + 2011-06-16 Georg-Johann Lay PR target/49313 diff --git a/gcc/config/avr/libgcc.S b/gcc/config/avr/libgcc.S index cf7d7683263..1988de91d1c 100644 --- a/gcc/config/avr/libgcc.S +++ b/gcc/config/avr/libgcc.S @@ -1241,7 +1241,7 @@ ENDF __bswapdi2 ;; r25:r18 = ashr64 (r25:r18, r17:r16) DEFUN __ashrdi3 push r16 - andi r16, 31 + andi r16, 63 breq 2f 1: asr r25 ror r24 @@ -1263,7 +1263,7 @@ ENDF __ashrdi3 ;; r25:r18 = lshr64 (r25:r18, r17:r16) DEFUN __lshrdi3 push r16 - andi r16, 31 + andi r16, 63 breq 2f 1: lsr r25 ror r24 @@ -1285,7 +1285,7 @@ ENDF __lshrdi3 ;; r25:r18 = ashl64 (r25:r18, r17:r16) DEFUN __ashldi3 push r16 - andi r16, 31 + andi r16, 63 breq 2f 1: lsl r18 rol r19