https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121470
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I just tried this on GCC 3.4.6 (before SSA) and get: #APP ori 0,0,$-32768 #NO_APP for f and #APP ori 0,0,$32768 #NO_APP for g. In the other bug report I pointed out when this changed in 2001: https://gcc.gnu.org/pipermail/gcc-patches/2001-January/043724.html https://gcc.gnu.org/pipermail/gcc-patches/2001-February/043950.html And even provided more links on why it was changed: https://inbox.sourceware.org/gcc-patches/199908021922.maa03...@zack.bitmover.com/ See https://inbox.sourceware.org/gcc-patches/org0gb1tmu....@guarana.lsd.ic.unicamp.br/ also. So if it worked the way you want it to work, it might have worked that way in 2.95.