Skip to content

[llvm] X86 backend ignores prefer-vector-width=256 and generates vmovaps with zmm registers #131537

@ezhulenev

Description

@ezhulenev

Godbolt: https://godbolt.org/z/sx6bjjYYK

Function attribute is ignored and in the end LLVM generates avx512 movs. I'm still debugging this, but it crashes at run time because pointers are not 64 byte aligned, and I'm not sure how LLVM decide to use avx512 aligned movs

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:X86questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions