[LoongArch] Unexpected conditional compilation directive for target_feature
#133276
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
llvm-fixed-upstream
Issue expected to be fixed by the next major LLVM upgrade, or backported fixes
O-loongarch
Target: LoongArch (LA32R, LA32S, LA64)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
The
simd
function was not compiled due to the missinglasx
feature.Instead, this happened:
The
simd
function was generated.Meta
rustc --version --verbose
:rustc -Z unstable-options --print target-spec-json
:The text was updated successfully, but these errors were encountered: