Skip to content

LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenc #94326

Closed
@smsxgli

Description

@smsxgli

Related issue in LLVM

Compiling firefox with rustc and clang, failed during PGO while linking libxul.so with thin LTO

32:33.70 LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenc

I expected to see this happen: compile succeed

Instead, this happened: compile failed

Meta

build with stable rust, rustc version 1.58.1

And same error in freebsd can be found here

OS: arch linux.
llvm, clang and lld version: 13.0.1
CPU: Intel(R) Core(TM) i7-4790 CPU, haswell
CFLAGS: -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -fasynchronous-unwind-tables -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-protector-strong -fstack-clash-protection -fcf-protection
CXXFLAGS: $CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS
LDFLAGS: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-z,noexecstack
RUSTFLAGS: -C opt-level=2 -C target-cpu=native

Building with same configuration succeed with Intel(R) Core(TM) i7-11800H CPU tigerlake

The LLVM developer's opinion can be found here, please take a look.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.C-bugCategory: This is a bug.O-x86_64Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions