avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Compilerbug ?


From: Marek Michalkiewicz
Subject: Re: [avr-gcc-list] Compilerbug ?
Date: Thu, 1 May 2003 14:04:37 +0200
User-agent: Mutt/1.4i

On Thu, May 01, 2003 at 01:47:41PM +0200, Markus Assfalg wrote:
>     10b6:       01 96           adiw    r24, 0x01       ; 1
>                    adc r25,r1 <--- << should here, but isn't !
>     10b8:       a1 1d           adc     r26, r1
>     10ba:       b1 1d           adc     r27, r1

>     10c4:       00 97           sbiw    r24, 0x00       ; 0
>                    cpc r25, r1        <--- << should here, but isn't !
>     10c6:       a1 05           cpc     r26, r1
>     10c8:       b1 05           cpc     r27, r1

> A bug ?

Not a bug, adiw/sbiw work on a pair of registers (r25:r24 here),
and flags are set for the whole 16-bit result.

> I use GCC 3.2.3

Now is a good time to test the 3.3 pre-release snapshots :)

Marek



reply via email to

[Prev in Thread] Current Thread [Next in Thread]