https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101501
Richard Biener changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101501
--- Comment #5 from Richard Biener ---
# of iterations (a_lsm.5_10 * 52) / 52, bounded by 63
is obviously wrong with a_lsm.5_10 being a 'char', that boils down to zero
iterations when computed at runtime. The loop body looks like
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101501
Richard Biener changed:
What|Removed |Added
Ever confirmed|0 |1
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101501
Richard Biener changed:
What|Removed |Added
Version|unknown |11.1.1
--- Comment #3 from Richard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101501
--- Comment #2 from Marc Glisse ---
unsigned char a = 55;
int main() {
unsigned char c;
d:
c = a-- * 52;
if (c)
goto d;
__builtin_printf("%d\n", a);
}
outputs 40 at -O3 instead of 255, and already fails with gcc-8. Cunroll seems
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101501
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |11.2
Summary|wrong code at