Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement AVX512_FP16 #1605

Merged
merged 11 commits into from
Jul 26, 2024
957 changes: 3 additions & 954 deletions crates/core_arch/missing-x86.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion crates/core_arch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
target_feature_11,
generic_arg_infer,
asm_experimental_arch,
sha512_sm_x86
sha512_sm_x86,
f16
)]
#![cfg_attr(test, feature(test, abi_vectorcall, stdarch_internal))]
#![deny(clippy::missing_inline_in_public_items)]
Expand Down
67 changes: 66 additions & 1 deletion crates/core_arch/src/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,19 @@ simd_ty!(
simd_ty!(i32x4[i32]: x0, x1, x2, x3);
simd_ty!(i64x2[i64]: x0, x1);

simd_ty!(
f16x8[f16]:
x0,
x1,
x2,
x3,
x4,
x5,
x6,
x7
);
simd_ty!(f32x4[f32]: x0, x1, x2, x3);
simd_ty!(f64x2[f64]: x0, x1);
simd_ty!(f64x4[f64]: x0, x1, x2, x3);

simd_m_ty!(
m8x16[i8]:
Expand Down Expand Up @@ -359,6 +369,25 @@ simd_ty!(
);
simd_ty!(i64x4[i64]: x0, x1, x2, x3);

simd_ty!(
f16x16[f16]:
x0,
x1,
x2,
x3,
x4,
x5,
x6,
x7,
x8,
x9,
x10,
x11,
x12,
x13,
x14,
x15
);
simd_ty!(
f32x8[f32]:
x0,
Expand All @@ -370,6 +399,7 @@ simd_ty!(
x6,
x7
);
simd_ty!(f64x4[f64]: x0, x1, x2, x3);

simd_m_ty!(
m8x32[i8]:
Expand Down Expand Up @@ -688,6 +718,41 @@ simd_ty!(
x15
);

simd_ty!(
f16x32[f16]:
x0,
x1,
x2,
x3,
x4,
x5,
x6,
x7,
x8,
x9,
x10,
x11,
x12,
x13,
x14,
x15,
x16,
x17,
x18,
x19,
x20,
x21,
x22,
x23,
x24,
x25,
x26,
x27,
x28,
x29,
x30,
x31
);
simd_ty!(
f32x16[f32]:
x0,
Expand Down
Loading