[Bug target/45434] x86 missed optimization: use high register (ah, bh, ch, dh) when available to make comparisons

2024-01-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45434 --- Comment #9 from Uroš Bizjak --- The current mainline compiles: --cut here-- _Bool foo(int i) { return (i & 0xFF) == ((i & 0xFF00) >> 8); } _Bool bar(int i) { return (i & 0xFF) <= ((i & 0xFF00) >> 8); } --cut here-- with -O2 to: foo:

[Bug target/45434] x86 missed optimization: use high register (ah, bh, ch, dh) when available to make comparisons

2021-08-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45434 Andrew Pinski changed: What|Removed |Added Component|rtl-optimization|target Target|