mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-24 22:17:08 +00:00
* fix build after stabilization of cfg_target_feature and target_feature * fix doc tests * fix spurious unused_attributes warning * fix more unused attribute warnings * More unnecessary target features * Remove no longer needed trait imports * Remove fixed upstream workarounds * Fix parsing the #[assert_instr] macro Following upstream proc_macro changes * Fix form and parsing of #[simd_test] * Don't use Cargo features for testing modes Instead use RUSTFLAGS with `--cfg`. This'll help us be compatible with the latest Cargo where a tweak to workspaces and features made the previous invocations we had invalid. * Don't thread RUSTFLAGS through docker * Re-gate on x86 verification Closes #411
57 lines
1004 B
Rust
57 lines
1004 B
Rust
//! coresimd 32-bit wide vector tests
|
|
|
|
#![cfg_attr(stdsimd_strict, deny(warnings))]
|
|
#![feature(stdsimd, link_llvm_intrinsics, simd_ffi, core_float)]
|
|
#![allow(unused_imports, dead_code)]
|
|
|
|
#[cfg(test)]
|
|
extern crate coresimd;
|
|
|
|
#[cfg(test)]
|
|
macro_rules! test_v16 {
|
|
($item:item) => {};
|
|
}
|
|
#[cfg(test)]
|
|
macro_rules! test_v32 {
|
|
($item:item) => {
|
|
$item
|
|
};
|
|
}
|
|
#[cfg(test)]
|
|
macro_rules! test_v64 {
|
|
($item:item) => {};
|
|
}
|
|
#[cfg(test)]
|
|
macro_rules! test_v128 {
|
|
($item:item) => {};
|
|
}
|
|
#[cfg(test)]
|
|
macro_rules! test_v256 {
|
|
($item:item) => {};
|
|
}
|
|
#[cfg(test)]
|
|
macro_rules! test_v512 {
|
|
($item:item) => {};
|
|
}
|
|
|
|
#[cfg(test)]
|
|
macro_rules! vector_impl {
|
|
($([$f:ident, $($args:tt)*]),*) => {};
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "../../../coresimd/ppsv/mod.rs"]
|
|
mod ppsv;
|
|
|
|
#[cfg(test)]
|
|
use std::{marker, mem};
|
|
|
|
#[cfg(all(test, target_arch = "aarch64"))]
|
|
use std::cmp;
|
|
|
|
#[cfg(all(test, target_arch = "aarch64"))]
|
|
extern crate core as _core;
|
|
|
|
#[cfg(all(test, target_arch = "aarch64"))]
|
|
use _core::num;
|