diff options
| author | Jack O'Connor <[email protected]> | 2020-03-28 19:27:05 -0400 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-03-28 19:30:28 -0400 |
| commit | f77c8ffd7cb3261ebe5d8ddc97a6cc04488721a7 (patch) | |
| tree | 83796e14571e34463cb030ea9760cea7178a7c66 /src | |
| parent | eb50d82f161ebfb934cf3626bc9fcada0bbc34e2 (diff) | |
print out instruction set support in CI
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/instruction_set_support.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/instruction_set_support.rs b/src/bin/instruction_set_support.rs new file mode 100644 index 0000000..15f9f37 --- /dev/null +++ b/src/bin/instruction_set_support.rs @@ -0,0 +1,9 @@ +fn main() { + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] + { + dbg!(is_x86_feature_detected!("sse4.1")); + dbg!(is_x86_feature_detected!("avx2")); + dbg!(is_x86_feature_detected!("avx512f")); + dbg!(is_x86_feature_detected!("avx512vl")); + } +} |
