https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117116
--- Comment #10 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Uroš Bizjak from comment #9) > (In reply to Uroš Bizjak from comment #8) > > + if (immediate_operand (x, inner_mode)) > > if (nonimmediate_operand (x, inner_mode)) This fix results in: foo: vmovdqa .LC0(%rip), %ymm0 # 11 [c=17 l=8] movv4di_internal/3 ret # 19 [c=0 l=1] simple_return_internal .LC0: .quad foo .quad 1 .quad 1 .quad 1