[Bug rtl-optimization/108516] Useless movzx instruction emitted when loading 8 bits from 24 bit struct

2023-02-10 Thread levo.delellis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108516 --- Comment #5 from Levo DeLellis --- Here's a testcase for the same problem struct T2 { bool a, b; }; static T2 test(); int myfunc() { auto [a, b] = test(); return ((int)a<<1) + b;

[Bug c++/108756] New: Unnecessary instruction

2023-02-10 Thread levo.delellis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108756 Bug ID: 108756 Summary: Unnecessary instruction Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug middle-end/108162] Missed optimization opportunity. Complex function that starts with if (param == 0) return 0;

2022-12-17 Thread levo.delellis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108162 --- Comment #3 from Levo DeLellis --- (In reply to Andrew Pinski from comment #2) > Round 4 is because of this heuriheuristics. Name the function something > besides main and try again. I couldn't reproduce. fn has more than xor eax/ret.

[Bug c++/108162] New: Missed optimization opportunity. Complex function that starts with if (param == 0) return 0;

2022-12-17 Thread levo.delellis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108162 Bug ID: 108162 Summary: Missed optimization opportunity. Complex function that starts with if (param == 0) return 0; Product: gcc Version: unknown Status: UNCONFIRMED

[Bug c/108140] tzcnt gives different result in debug vs release

2022-12-16 Thread levo.delellis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108140 --- Comment #3 from Levo DeLellis --- It's late and realized I meant to write rbitll but I can't seem to edit/correct my post Jakub ty I'll do just that. Do you happen to know if clang uses the same sanitizers? I didn't seem to get that on

[Bug c/108140] New: tzcnt gives different result in debug vs release

2022-12-16 Thread levo.delellis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108140 Bug ID: 108140 Summary: tzcnt gives different result in debug vs release Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3