https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66866

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.4
            Summary|[miscompile] incorrect load |[4.9/5 Regression]
                   |address on manual vector    |incorrect load address on
                   |shuffle                     |manual vector shuffle

--- Comment #9 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed in mainline.

The reduced testcase now compiles to:

_Z4shufDv2_x:
.LFB0:
        .cfi_startproc
        vpextrw $4, %xmm0, %eax
        vpxor   %xmm0, %xmm0, %xmm0
        vpinsrw $5, %eax, %xmm0, %xmm0
        ret

Patch needs backports to release branches.

Reply via email to