about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/function_calls/target_feature.rs
blob: 43df761bd0bb006195c0f6e76d396eb30eaa0f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@only-target: x86_64 # uses x86 target features
//@compile-flags: -C target-feature=+ssse3

fn main() {
    assert!(is_x86_feature_detected!("ssse3"));
    unsafe {
        ssse3_fn();
    }
}

#[target_feature(enable = "ssse3")]
unsafe fn ssse3_fn() {}