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

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

Re: [avr-gcc-list] Bug in *rotlsi3 insns?


From: Georg-Johann Lay
Subject: Re: [avr-gcc-list] Bug in *rotlsi3 insns?
Date: Mon, 23 Mar 2009 22:53:26 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Anatoly Sokolov schrieb:
Hi.

Consider this test case:

unsigned long rotl (int dummy, unsigned long x)
{
    return (x << 8) | (x >> 24);
}

Compile with, e.g.
   avr-gcc -mmcu=atmega8 -S -Os -fno-split-wide-types

This will map 0x33221100 to 0x33110033 instead of to 0x22110033



Please test the patch.

reg_overlap_mentioned_p won't suffice because there are two cases depending on REGNO(src) < REGNO(dest) and REGNO(src) > REGNO(dest)

Georg-Johann





reply via email to

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