https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87031
--- Comment #2 from Michael_S <already5chosen at yahoo dot com> --- After playing with the 2nd case on godbolt I found that it's not target specific. The regression occurred at all targets between gcc6 and gcc7.