https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64082
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |5.4.0 Known to work| |6.3.0 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=64164 Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |6.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC 6 expansion: (insn 9 8 10 (set (reg:DI 76) (sign_extend:DI (reg/v:SI 74 [ i ]))) /app/example.cpp:7 -1 (nil)) (insn 10 9 11 (set (reg:DI 77) (plus:DI (reg/f:DI 68 virtual-stack-vars) (const_int -16 [0xfffffffffffffff0]))) /app/example.cpp:7 -1 (nil)) (insn 11 10 12 (set (reg:QI 78) (mem/j:QI (plus:DI (reg:DI 77) (reg:DI 76)) [0 A S1 A8])) /app/example.cpp:7 -1 (nil)) GCC 5 expansion: (insn 9 8 10 (set (reg:DI 76) (sign_extend:DI (reg/v:SI 74 [ i ]))) /app/example.cpp:7 -1 (nil)) (insn 10 9 11 (set (reg:DI 78) (plus:DI (reg/f:DI 68 virtual-stack-vars) (const_int -4096 [0xfffffffffffff000]))) /app/example.cpp:7 -1 (nil)) (insn 11 10 12 (set (reg:DI 79) (plus:DI (reg:DI 78) (reg:DI 76))) /app/example.cpp:7 -1 (nil)) (insn 12 11 13 (set (reg/f:DI 77) (reg:DI 79)) /app/example.cpp:7 -1 (nil)) (insn 13 12 14 (set (reg:QI 80) (mem/j:QI (plus:DI (reg/f:DI 77) (const_int 4080 [0xff0])) [0 A S1 A8])) /app/example.cpp:7 -1 (nil)) I think the patch which fixed this was one of the patches for PR 64164. So fixed.