Re: [Patch,AVR]: Fix PR52507

2012-03-06 Thread Denis Chertykov
2012/3/6 Georg-Johann Lay :
> This fixes a wrong loop label in the movmemhi worker for the __memx address
> space case.
>
> Ok for trunk?
>
> Johann
>
>        PR target/52507
>        * config/avr/lib1funcs.S (__movmemx_hi): Fix loop label in RAM-part.

Approved.

Denis.


[Patch,AVR]: Fix PR52507

2012-03-06 Thread Georg-Johann Lay
This fixes a wrong loop label in the movmemhi worker for the __memx address
space case.

Ok for trunk?

Johann

PR target/52507
* config/avr/lib1funcs.S (__movmemx_hi): Fix loop label in RAM-part.
Index: libgcc/config/avr/lib1funcs.S
===
--- libgcc/config/avr/lib1funcs.S	(revision 184887)
+++ libgcc/config/avr/lib1funcs.S	(working copy)
@@ -2252,7 +2252,7 @@ DEFUN __movmemx_hi
 ;; and store that Byte to RAM Destination
 st  X+, r0
 sbiwLOOP, 1
-brne0b
+brne1b
 ret
 ENDF __movmemx_hi