Repository: rust
Issue: Tracking Issue for `stdarch_s390x`
Labels: T-libs-api,C-tracking-issue,O-SystemZ

Feature gate: `#![feature(stdarch_s390x)]`

This is a tracking issue for the s390x (aka SystemZ) intrinsics in `core::arch::s390x`.

### Public API

Everything in `core::arch::s390x`.

Missing instructions

based on the GCC [vecintrin.h](https://github.com/gcc-mirror/gcc/blob/master/gcc/config/s390/vecintrin.h)

- [ ] `vec_step`
- [ ] `__lcbb`
- [ ] `vec_adde`
- [ ] `vec_addec`
- [ ] `vec_all_nle`
- [ ] `vec_all_nlt`
- [ ] `vec_any_nle`
- [ ] `vec_any_nlt`
- [ ] `vec_genmask`
- [ ] `vec_genmasks_8`
- [ ] `vec_genmasks_16`
- [ ] `vec_genmasks_32`
- [ ] `vec_genmasks_64`
- [ ] `vec_splat_u8`
- [ ] `vec_splat_s8`
- [ ] `vec_splat_u16`
- [ ] `vec_splat_s16`
- [ ] `vec_splat_u32`
- [ ] `vec_splat_s32`
- [ ] `vec_splat_u64`
- [ ] `vec_splat_s64`
- [ ] `vec_sube`
- [ ] `vec_subec`
- [ ] `vec_checksum`
- [ ] `vec_gfmsum_128`
- [ ] `vec_gfmsum_accum_128`
- [ ] `vec_ceil`
- [ ] `vec_roundp`
- [ ] `vec_floor`
- [ ] `vec_roundm`
- [ ] `vec_trunc`
- [ ] `vec_roundz`
- [ ] `vec_rint`
- [ ] `vec_roundc`
- [ ] `vec_round`
- [ ] `vec_doublee`
- [ ] `vec_floate`

- [ ] `vec_all_nan`
- [ ] `vec_all_numeric`
- [ ] `vec_any_nan`
- [ ] `vec_any_numeric`

- [ ] `vec_extend_to_fp32_hi`
- [ ] `vec_extend_to_fp32_lo`
- [ ] `vec_round_from_fp32`
- [ ] `vec_convert_to_fp16`
- [ ] `vec_convert_from_fp16`

- [ ] `vec_gen_element_masks_8`
- [ ] `vec_gen_element_masks_16`
- [ ] `vec_gen_element_masks_32`
- [ ] `vec_gen_element_masks_64`
- [ ] `vec_gen_element_masks_128`

- [x] `vec_abs`
- [ ] `vec_add_u128`
- [ ] `vec_addc`
- [ ] `vec_addc_u128`
- [ ] `vec_adde_u128`
- [ ] `vec_addec_u128`
- [ ] `vec_all_eq`
- [ ] `vec_all_ge`
- [ ] `vec_all_gt`
- [ ] `vec_all_le`
- [ ] `vec_all_lt`
- [ ] `vec_all_ne`
- [ ] `vec_all_nge`
- [ ] `vec_all_ngt`
- [ ] `vec_and`
- [ ] `vec_andc`
- [ ] `vec_any_eq`
- [ ] `vec_any_ge`
- [ ] `vec_any_gt`
- [ ] `vec_any_le`
- [ ] `vec_any_lt`
- [ ] `vec_any_ne`
- [ ] `vec_any_nge`
- [ ] `vec_any_ngt`
- [ ] `vec_avg`
- [ ] `vec_blend`
- [ ] `vec_bperm`
- [ ] `vec_bperm_u128`
- [ ] `vec_cmpeq`
- [ ] `vec_cmpeq_idx`
- [ ] `vec_cmpeq_idx_cc`
- [ ] `vec_cmpeq_or_0_idx`
- [ ] `vec_cmpeq_or_0_idx_cc`
- [ ] `vec_cmpge`
- [ ] `vec_cmpgt`
- [ ] `vec_cmple`
- [ ] `vec_cmplt`
- [ ] `vec_cmpne_idx`
- [ ] `vec_cmpne_idx_cc`
- [ ] `vec_cmpne_or_0_idx`
- [ ] `vec_cmpne_or_0_idx_cc`
- [ ] `vec_cmpnrg`
- [ ] `vec_cmpnrg_cc`
- [ ] `vec_cmpnrg_idx`
- [ ] `vec_cmpnrg_idx_cc`
- [ ] `vec_cmpnrg_or_0_idx`
- [ ] `vec_cmpnrg_or_0_idx_cc`
- [ ] `vec_cmprg`
- [ ] `vec_cmprg_cc`
- [ ] `vec_cmprg_idx`
- [ ] `vec_cmprg_idx_cc`
- [ ] `vec_cmprg_or_0_idx`
- [ ] `vec_cmprg_or_0_idx_cc`
- [ ] `vec_cntlz`
- [ ] `vec_cnttz`
- [ ] `vec_cp_until_zero`
- [ ] `vec_cp_until_zero_cc`
- [ ] `vec_ctd`
- [ ] `vec_ctd_s64`
- [ ] `vec_ctd_u64`
- [ ] `vec_ctsl`
- [ ] `vec_ctul`
- [ ] `vec_double`
- [ ] `vec_eqv`
- [ ] `vec_evaluate`
- [ ] `vec_extend_s64`
- [ ] `vec_extract`
- [ ] `vec_find_any_eq`
- [ ] `vec_find_any_eq_cc`
- [ ] `vec_find_any_eq_idx`
- [ ] `vec_find_any_eq_idx_cc`
- [ ] `vec_find_any_eq_or_0_idx`
- [ ] `vec_find_any_eq_or_0_idx_cc`
- [ ] `vec_find_any_ne`
- [ ] `vec_find_any_ne_cc`
- [ ] `vec_find_any_ne_idx`
- [ ] `vec_find_any_ne_idx_cc`
- [ ] `vec_find_any_ne_or_0_idx`
- [ ] `vec_find_any_ne_or_0_idx_cc`
- [ ] `vec_float`
- [ ] `vec_fp_test_data_class`
- [ ] `vec_gather_element`
- [ ] `vec_gfmsum`
- [ ] `vec_gfmsum_accum`
- [ ] `vec_insert`
- [ ] `vec_insert_and_zero`
- [ ] `vec_ld2f`
- [ ] `vec_load_bndry`
- [ ] `vec_load_len`
- [ ] `vec_load_len_r`
- [ ] `vec_load_pair`
- [ ] `vec_madd`
- [x] `vec_max`
- [ ] `vec_meadd`
- [ ] `vec_mergeh`
- [ ] `vec_mergel`
- [ ] `vec_mhadd`
- [x] `vec_min`
- [ ] `vec_mladd`
- [ ] `vec_moadd`
- [ ] `vec_msub`
- [ ] `vec_msum`
- [ ] `vec_msum_u128`
- [ ] `vec_mule`
- [ ] `vec_mulh`
- [ ] `vec_mulo`
- [ ] `vec_nabs`
- [ ] `vec_nand`
- [ ] `vec_nmadd`
- [ ] `vec_nmsub`
- [ ] `vec_nor`
- [ ] `vec_or`
- [ ] `vec_orc`
- [ ] `vec_pack`
- [ ] `vec_packs`
- [ ] `vec_packs_cc`
- [ ] `vec_packsu`
- [ ] `vec_packsu_cc`
- [ ] `vec_perm`
- [ ] `vec_permi`
- [ ] `vec_popcnt`
- [ ] `vec_promote`
- [ ] `vec_revb`
- [ ] `vec_reve`
- [ ] `vec_rl`
- [ ] `vec_rl_mask`
- [ ] `vec_rli`
- [ ] `vec_scatter_element`
- [ ] `vec_search_string_cc`
- [ ] `vec_search_string_until_zero_cc`
- [ ] `vec_sel`
- [ ] `vec_signed`
- [ ] `vec_slb`
- [ ] `vec_sld`
- [ ] `vec_sldb`
- [ ] `vec_sldw`
- [ ] `vec_sll`
- [ ] `vec_splat`
- [x] `vec_splats`
- [ ] `vec_sqrt`
- [ ] `vec_srab`
- [ ] `vec_sral`
- [ ] `vec_srb`
- [ ] `vec_srdb`
- [ ] `vec_srl`
- [ ] `vec_st2f`
- [ ] `vec_store_len`
- [ ] `vec_store_len_r`
- [ ] `vec_sub_u128`
- [ ] `vec_subc`
- [ ] `vec_subc_u128`
- [ ] `vec_sube_u128`
- [ ] `vec_subec_u128`
- [ ] `vec_sum`
- [ ] `vec_sum2`
- [ ] `vec_sum4`
- [ ] `vec_sum_u128`
- [ ] `vec_test_mask`
- [ ] `vec_unpackh`
- [ ] `vec_unpackl`
- [ ] `vec_unsigned`
- [ ] `vec_xl`
- [ ] `vec_xld2`
- [ ] `vec_xlw4`
- [ ] `vec_xor`
- [ ] `vec_xst`
- [ ] `vec_xstd2`
- [ ] `vec_xstw4`



### Steps / History

<!--
For larger features, more steps might be involved.
If the feature is changed later, please add those PRs here as well.
-->

- [ ] Implementation: #...
- [ ] Final comment period (FCP)[^1]
- [ ] Stabilization PR

<!--
Once the feature has gone through a few release cycles and there are no
unresolved questions left, the feature might be ready for stabilization.

If this feature didn't go through the RFC process, a final comment period
(FCP) is always needed before stabilization. This works as follows:

A library API team member can kick off the stabilization process, at which point
the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
comment period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilization PR can be opened by anyone.
-->

### Unresolved Questions

<!--
Include any open questions that need to be answered before the feature can be
stabilised. If multiple (unrelated) big questions come up, it can be a good idea
to open a separate issue for each, to make it easier to keep track of the
discussions.

It's useful to link any relevant discussions and conclusions (whether on GitHub,
Zulip, or the internals forum) here.
-->

- None yet.

[^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@rustbot label O-SystemZ
general s390x vector/intrinsics progress is tracked at https://github.com/rust-lang/rust/issues/130869
cc @taiki-e