about summary refs log tree commit diff
path: root/tests/ui/target-feature/asm-implied-features-issue-128125.rs
blob: 2b4f1d7df856317940c737b7d04da86ed438197c (plain)
1
2
3
4
5
6
7
8
9
10
//@ 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() {}