Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using -march=x86-64-v4 seems to be missing +avx512f #193826

@pstarkcdpr

Description

@pstarkcdpr

I notice this while working with IREE. According to the docs (https://clang.llvm.org/docs/UsersManual.html#x86), using cpu architecture x86-64-v4 should add AVX512F, AVX512BW, AVX512CD, AVX512DQ, AVX512VL beyond x86-64-v3. In practice, I'm seeing:

cpu = "x86-64-v4"
cpu_features = "+cmov,+mmx,+popcnt,+sse,+sse2,+sse4.2,+avx2,+fma,+bmi,+bmi2,+avx512vl,+avx512bw,+avx512dq,+avx512cd,+cx16,+f16c,+sahf,+lzcnt,+movbe,+xsave,+cx8,+crc32,+x87,+fxsr"

which doesn't include +avx512f. Is it omitted on purpose or is recursive dependency propagation not happening as expected?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions