about summary refs log tree commit diff
path: root/tests/ui/target-feature/implied-features.rs
blob: c6d9ba78c21e62dcae433ceee9393c4f50347b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//@ only-x86_64
//@ run-pass
#![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() {}