about summary refs log tree commit diff
path: root/tests/codegen-llvm/target-feature-negative-implication.rs
blob: 36cd82dd8cf5abcf4e3d4d33c7ac2f77cfda69c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ add-core-stubs
//@ needs-llvm-components: x86
//@ compile-flags: --target=x86_64-unknown-linux-gnu
//@ compile-flags: -Ctarget-feature=-avx2

#![feature(no_core, lang_items)]
#![crate_type = "lib"]
#![no_core]

extern crate minicore;
use minicore::*;

#[no_mangle]
pub unsafe fn banana() {
    // CHECK-LABEL: @banana()
    // CHECK-SAME: [[BANANAATTRS:#[0-9]+]] {
}

// CHECK: attributes [[BANANAATTRS]]
// CHECK-SAME: -avx512