Skip to content

s390x: another batch of intrinsics #1738

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

Merged
merged 21 commits into from
Mar 16, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct name of signed splat functions
  • Loading branch information
folkertdev committed Mar 4, 2025
commit fd1ca1207d7c0da6c9ccd3f056d1c1db815f1bc6
8 changes: 4 additions & 4 deletions crates/core_arch/src/s390x/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,7 @@ pub unsafe fn vec_subec_u128(
#[target_feature(enable = "vector")]
#[unstable(feature = "stdarch_s390x", issue = "135681")]
#[cfg_attr(test, assert_instr(vrepib, IMM = 42))]
pub unsafe fn vec_splat_i8<const IMM: i8>() -> vector_signed_char {
pub unsafe fn vec_splat_s8<const IMM: i8>() -> vector_signed_char {
vector_signed_char([IMM; 16])
}

Expand All @@ -3043,7 +3043,7 @@ pub unsafe fn vec_splat_i8<const IMM: i8>() -> vector_signed_char {
#[target_feature(enable = "vector")]
#[unstable(feature = "stdarch_s390x", issue = "135681")]
#[cfg_attr(test, assert_instr(vrepih, IMM = 42))]
pub unsafe fn vec_splat_i16<const IMM: i16>() -> vector_signed_short {
pub unsafe fn vec_splat_s16<const IMM: i16>() -> vector_signed_short {
vector_signed_short([IMM as i16; 8])
}

Expand All @@ -3052,7 +3052,7 @@ pub unsafe fn vec_splat_i16<const IMM: i16>() -> vector_signed_short {
#[target_feature(enable = "vector")]
#[unstable(feature = "stdarch_s390x", issue = "135681")]
#[cfg_attr(test, assert_instr(vrepif, IMM = 42))]
pub unsafe fn vec_splat_i32<const IMM: i16>() -> vector_signed_int {
pub unsafe fn vec_splat_s32<const IMM: i16>() -> vector_signed_int {
vector_signed_int([IMM as i32; 4])
}

Expand All @@ -3061,7 +3061,7 @@ pub unsafe fn vec_splat_i32<const IMM: i16>() -> vector_signed_int {
#[target_feature(enable = "vector")]
#[unstable(feature = "stdarch_s390x", issue = "135681")]
#[cfg_attr(test, assert_instr(vrepig, IMM = 42))]
pub unsafe fn vec_splat_i64<const IMM: i16>() -> vector_signed_long_long {
pub unsafe fn vec_splat_s64<const IMM: i16>() -> vector_signed_long_long {
vector_signed_long_long([IMM as i64; 2])
}

Expand Down