[Bug target/116014] Missed optimization opportunity: inverted shift count

2024-07-24 Thread bisqwit at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116014 --- Comment #2 from Joel Yliluoma --- (In reply to Andi Kleen from comment #1) > is that from some real code? why would a programmer write shifts like that? Yes, it is from actual code: uint64_t readvlq() { uint64_t x, f = ~(ui

[Bug middle-end/116013] Missed optimization opportunity with andn involving consts

2024-07-20 Thread bisqwit at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116013 --- Comment #1 from Joel Yliluoma --- Should be noted that this is not x86_64 specific; andn exists for other platforms too, and even for platforms that don’t have it, changing `~(expr|const)` into `~expr & ~const` is unlikely to be a pessimiz

[Bug tree-optimization/116014] New: Missed optimization opportunity: inverted shift count

2024-07-20 Thread bisqwit at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116014 Bug ID: 116014 Summary: Missed optimization opportunity: inverted shift count Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug tree-optimization/116013] New: Missed optimization opportunity with andn involving consts

2024-07-20 Thread bisqwit at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116013 Bug ID: 116013 Summary: Missed optimization opportunity with andn involving consts Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Pr

[Bug c++/99895] New: Function parameters generated wrong in call to member of non-type template parameter in lambda

2021-04-03 Thread bisqwit at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99895 Bug ID: 99895 Summary: Function parameters generated wrong in call to member of non-type template parameter in lambda Product: gcc Version: 10.2.1 Status: UNCONFIRMED

[Bug c++/99893] New: C++20 unexpanded parameter packs falsely not detected (lambda is involved)

2021-04-03 Thread bisqwit at iki dot fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99893 Bug ID: 99893 Summary: C++20 unexpanded parameter packs falsely not detected (lambda is involved) Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: nor