https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98927
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Seems like ARM is going down the route of requiring the arugments to be "constexpr" like. See https://gcc.gnu.org/pipermail/gcc/2021-August/236960.html (and all of the related threads).