Skip to content

Commit db1b2ca

Browse files
committed
fixes
1 parent 1b0458c commit db1b2ca

6 files changed

Lines changed: 19 additions & 12 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ jobs:
272272
name: Intrinsic Test
273273
runs-on: ubuntu-latest
274274
strategy:
275+
fail-fast: false
275276
matrix:
276277
target:
277278
- aarch64-unknown-linux-gnu

ci/intrinsic-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ case ${TARGET} in
6767
;;
6868
esac
6969

70-
cargo test --manifest-path=rust_programs/Cargo.toml --target "${TARGET}" --profile "${PROFILE}"
70+
cargo test --manifest-path=rust_programs/Cargo.toml --target "${TARGET}" --profile "${PROFILE}" --no-fail-fast

crates/intrinsic-test/missing_x86.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,19 @@ _mm_sm3rnds2_epi32
5252
_xgetbv
5353

5454
# top bits are undefined, unclear how to test these
55+
_mm256_castph128_ph256
56+
_mm256_castps128_ps256
57+
_mm256_castpd128_pd256
5558
_mm256_castsi128_si256
59+
60+
_mm512_castph128_ph512
61+
_mm512_castps128_ps512
62+
_mm512_castpd128_pd512
5663
_mm512_castsi128_si512
64+
65+
_mm512_castph256_ph512
66+
_mm512_castps256_ps512
67+
_mm512_castpd256_pd512
5768
_mm512_castsi256_si512
5869

5970
# Clang bug

crates/intrinsic-test/src/common/gen_rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub fn write_build_rs(
274274
i: usize,
275275
arch_flags: &[&str],
276276
) -> std::io::Result<()> {
277-
const COMMON_FLAGS: &[&str] = &["-ffp-contract=off", "-Wno-narrowing", "-fuse-ld=lld"];
277+
const COMMON_FLAGS: &[&str] = &["-ffp-contract=off", "-Wno-narrowing"];
278278

279279
write!(
280280
w,

crates/intrinsic-test/src/x86/config.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,8 @@ unsafe fn _mm512_loadu_epi64_to___m512(mem_addr: *const i64) -> __m512 {
131131
"#;
132132

133133
pub const PLATFORM_RUST_CFGS: &str = r#"
134-
#![cfg_attr(target_arch = "x86", feature(avx))]
135-
#![cfg_attr(target_arch = "x86", feature(sse))]
136-
#![cfg_attr(target_arch = "x86", feature(sse2))]
137-
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512_bf16))]
138-
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512_f16))]
139-
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_rtm))]
140-
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_rtm))]
141-
#![cfg_attr(target_arch = "x86_64", feature(x86_amx_intrinsics))]
142-
#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512_f16))]
143-
#![feature(fmt_helpers_for_derive)]
134+
#![feature(stdarch_x86_avx512_bf16)]
135+
#![feature(stdarch_x86_avx512_f16)]
136+
#![feature(stdarch_x86_rtm)]
137+
#![feature(x86_amx_intrinsics)]
144138
"#;

crates/intrinsic-test/src/x86/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ impl SupportedArchitectureTest for X86ArchitectureTest {
6262
"-mgfni",
6363
"-mvaes",
6464
"-mvpclmulqdq",
65+
"-mlzcnt",
6566
]
6667
}
6768

0 commit comments

Comments
 (0)