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