2021-10-19 14:50:34 -05:00
|
|
|
// build-pass
|
2022-03-19 10:50:24 -05:00
|
|
|
// needs-asm-support
|
2021-10-19 14:50:34 -05:00
|
|
|
// only-x86_64
|
|
|
|
|
2023-03-02 06:41:17 -06:00
|
|
|
#![feature(target_feature_11)]
|
|
|
|
|
2021-12-09 18:15:33 -06:00
|
|
|
use std::arch::asm;
|
2021-10-19 14:50:34 -05:00
|
|
|
|
|
|
|
#[target_feature(enable = "avx")]
|
2023-03-02 05:37:32 -06:00
|
|
|
fn foo() {
|
2021-10-19 14:50:34 -05:00
|
|
|
unsafe {
|
|
|
|
asm!(
|
|
|
|
"/* {} */",
|
|
|
|
out(ymm_reg) _,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2023-03-02 05:37:32 -06:00
|
|
|
|
|
|
|
fn main() {}
|