This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, AVR]: Fix PR39633 (missing *cmpqi)
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Eric Weddington <eric dot weddington at atmel dot com>, Anatoly Sokolov <aesok at post dot ru>
- Date: Mon, 11 Jul 2011 13:54:49 +0400
- Subject: Re: [Patch, AVR]: Fix PR39633 (missing *cmpqi)
- References: <4E1AB7F6.7030102@gjlay.de>
2011/7/11 Georg-Johann Lay <avr@gjlay.de>:
> char >> 7 is compiled to
>
> LSL reg
> SBC reg,reg
>
> which leaves cc0 in a mess because Z-flag is not set by SBC, it's
> propagated from LSL.
>
> Patch as obvious, new testcase pass and contains *cmpqi.
>
> Ok to commit?
>
Please, commit.
Denis.