rustc/tests/ui/target-feature/asm-implied-features-issue-128125.rs
2024-10-21 11:08:01 +02:00

11 lines
205 B
Rust

//@ only-x86_64
//@ build-pass
#![allow(dead_code)]
#[target_feature(enable = "avx2")]
unsafe fn demo(v: std::arch::x86_64::__m256i) {
std::arch::asm!("/* {v} */", v = in(ymm_reg) v);
}
fn main() {}