This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/85516] [missed-optimization] gcc does not convert multiple compares against constants to a shift+bitmask test
- From: "avi at cloudius-systems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Apr 2018 15:29:04 +0000
- Subject: [Bug middle-end/85516] [missed-optimization] gcc does not convert multiple compares against constants to a shift+bitmask test
- Auto-submitted: auto-generated
- References: <bug-85516-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85516
--- Comment #2 from Avi Kivity <avi@cloudius-systems.com> ---
Interesting. Still missing optimizations - v cannot be larger than 9 (UB), and
bt is faster than mov+shift+and.