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