This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39386] [avr] different computation results for O1 and O0 executables
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Jul 2011 13:48:34 +0000
- Subject: [Bug target/39386] [avr] different computation results for O1 and O0 executables
- Auto-submitted: auto-generated
- References: <bug-39386-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39386
--- Comment #11 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-23 13:48:14 UTC ---
Created attachment 24814
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24814
Minimal testcase
Minimal testcase that also miscompiles for newer versions of the compiler like
4.5.2 or 4.6.1.
Compiles with -Os to
shift:
rjmp 2f
1: lsl r24
rol r25
2: dec r24
brpl 1b
ret