|
| 1 | +pub fn build_notices(line_prefix: &str) -> String { |
| 2 | + format!( |
| 3 | + "\ |
| 4 | +{line_prefix}This is a transient test file, not intended for distribution. Some aspects of the |
| 5 | +{line_prefix}test are derived from a JSON specification, published under the same license as the |
| 6 | +{line_prefix}`intrinsic-test` crate.\n |
| 7 | +" |
| 8 | + ) |
| 9 | +} |
| 10 | + |
| 11 | +pub const POLY128_COUT_DEF: &str = r#" |
| 12 | +std::ostream& operator<<(std::ostream& os, poly128_t value) {{ |
| 13 | + std::stringstream temp; |
| 14 | + do {{ |
| 15 | + int n = value % 10; |
| 16 | + value /= 10; |
| 17 | + temp << n; |
| 18 | + }} while (value != 0); |
| 19 | + std::string tempstr(temp.str()); |
| 20 | + std::string res(tempstr.rbegin(), tempstr.rend()); |
| 21 | + os << res; |
| 22 | + return os; |
| 23 | +}}"#; |
| 24 | + |
| 25 | +pub const AARCH_CONFIGURATIONS: &str = r#" |
| 26 | +#![cfg_attr(target_arch = "arm", feature(stdarch_arm_neon_intrinsics))] |
| 27 | +#![cfg_attr(target_arch = "arm", feature(stdarch_aarch32_crc32))] |
| 28 | +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_fcma))] |
| 29 | +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_dotprod))] |
| 30 | +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_i8mm))] |
| 31 | +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_sha3))] |
| 32 | +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_sm4))] |
| 33 | +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_ftts))] |
| 34 | +#![feature(stdarch_neon_f16)] |
| 35 | +"#; |
0 commit comments