Commit fbd05da0 by Georg-Johann Lay Committed by Georg-Johann Lay

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
parent 59c1e10b
2011-06-16 Georg-Johann Lay <avr@gjlay.de>
* config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
truncation mask to 63.
2011-06-16 Georg-Johann Lay <avr@gjlay.de>
PR target/49313
PR target/29524
* longlong.h: Add AVR support:
......
......@@ -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
......
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