https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110303
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Denis Yaroshevskiy from comment #4) > > so _mm_shuffle_epi32 requires a constant but since it is an argument, the > > argument, it is not a constant expression requirement. > > The function is marked constexpr. So it can be a constant if you ask it. The problem is -O0 means "don't ask it". Constant propagation is an optimization, but -O0 means don't do optimization.