[Bug c++/85533] Missing optimization for right-shift of unsigned int (avr-g++)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85533 Randy Brecker changed: What|Removed |Added Target|avr |x86 avr Status|RESOLVED|VERIFIED Version|7.3.0 |8.0.1 --- Comment #3 from Randy Brecker --- This is also true von x86_64, where we get: movzbl x(%rip), %eax sarl%eax movb%al, x(%rip) movzbl y(%rip), %eax shrb%al movb%al, y(%rip) xorl%eax, %eax Looks like a FE bug here.
[Bug c++/85533] Missing optimization for right-shift of unsigned int (avr-g++)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85533 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #2 from Georg-Johann Lay --- Likely a DUP of PR82658. *** This bug has been marked as a duplicate of bug 82658 ***
[Bug c++/85533] Missing optimization for right-shift of unsigned int (avr-g++)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85533 Jonathan Wakely changed: What|Removed |Added Keywords||missed-optimization --- Comment #1 from Jonathan Wakely --- I'm not sure if this is specific to the avr target, as we also get different code for C and C++ on x86_64 targets.