https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232
Roger Sayle <roger at nextmovesoftware dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |12.0
CC| |roger at nextmovesoftware dot
com
--- Comment #9 from Roger Sayle <roger at nextmovesoftware dot com> ---
This is fixed on mainline; the godbolt link in comment #1 shows that GCC now
generates the same code for all three functions.