about summary refs log tree commit diff
path: root/tests/rustdoc-json/targets/x86_64_reflects_compiler_options.rs
blob: ba029b099963871cd56b26b36abb2836c028fb7d (plain)
1
2
3
4
5
6
7
8
9
10
//@ only-x86_64

// If we enable AVX2, we should see that it is enabled
//@ compile-flags: -Ctarget-feature=+avx2
//@ is "$.target.target_features[?(@.name=='avx2')].globally_enabled" true

// As well as its dependency chain
//@ is "$.target.target_features[?(@.name=='avx')].globally_enabled" true
//@ is "$.target.target_features[?(@.name=='sse4.2')].globally_enabled" true
//@ is "$.target.target_features[?(@.name=='sse4.1')].globally_enabled" true