2024-07-25 23:05:20 -05:00
|
|
|
//@ only-x86_64
|
2024-07-26 09:04:27 -05:00
|
|
|
//@ build-pass
|
2024-07-25 23:05:20 -05:00
|
|
|
#![feature(target_feature_11)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
#[target_feature(enable = "ssse3")]
|
|
|
|
fn call_ssse3() {}
|
|
|
|
|
|
|
|
#[target_feature(enable = "avx")]
|
|
|
|
fn call_avx() {}
|
|
|
|
|
|
|
|
#[target_feature(enable = "avx2")]
|
|
|
|
fn test_avx2() {
|
|
|
|
call_ssse3();
|
|
|
|
call_avx();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[target_feature(enable = "fma")]
|
|
|
|
fn test_fma() {
|
|
|
|
call_ssse3();
|
|
|
|
call_avx();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|