https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106064
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> --- Seems target-dependent. I can't reproduce on x86_64-linux-gnu or sparc64-linux-gnu: both compile f() to return 1 and g() to perform a runtime computation. But ppc64-linux-gnu and armv7l-linux-gnueabi behave as your aarch64 example: f() returns 1 and g() returns 0 (unconditionally, no runtime computations).