stdarch icon indicating copy to clipboard operation
stdarch copied to clipboard

attempt to resolve #852

Open matthiascy opened this issue 1 year ago • 10 comments

This PR introduces _MM_{GET,SET}_DENORMALS_ZERO_MODE, MM_DENORMALS_ZERO_ON, MM_DENORMALS_ZERO_OFF, MM_DENORMALS_ZERO_MASK. One remaining question is that in which file these should be placed? sse.rs or sse3.rs?

matthiascy avatar Feb 07 '23 21:02 matthiascy

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon.

rustbot avatar Feb 07 '23 21:02 rustbot

_MM_{SET, GET}_DENORMALS_ZERO_MODE is not defined in Intel Intrinsics Guid but can be found in emmintrin.h of llvm, pmmintrin.h of gcc, and pmmintrin.h of Intel C++ Compiler.

matthiascy avatar Feb 07 '23 22:02 matthiascy

LGTM! For the CI failure, you can add an exception in crates/stdarch-verify/tests/x86-intel.rs to ignore the check for this function.

This requires an FCP since it is adding a stable API.

@rfcbot fcp merge

Amanieu avatar Feb 11 '23 16:02 Amanieu

Team member @Amanieu has proposed to merge this. The next step is review by the rest of the tagged team members:

  • [x] @Amanieu
  • [ ] @BurntSushi
  • [x] @dtolnay
  • [ ] @joshtriplett
  • [x] @m-ou-se

Concerns:

  • unstable for a time (https://github.com/rust-lang/stdarch/pull/1377#issuecomment-1448663228)

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

rfcbot avatar Feb 11 '23 16:02 rfcbot

:bell: This is now entering its final comment period, as per the review above. :bell:

psst @Amanieu, I wasn't able to add the final-comment-period label, please do so.

rfcbot avatar Feb 28 '23 15:02 rfcbot

My understanding is that we should try to land new APIs as unstable, and only after some time has passed, then we can mark them stable.

@rfcbot concern unstable for a time

EDIT: Not sure why, but rfcbot doesn't seem to be registering my concern.

BurntSushi avatar Feb 28 '23 18:02 BurntSushi

That's a good point.

@matthiascy Could you change your PR to make these functions unstable and open a tracking issue in rust-lang/rust?

Amanieu avatar Mar 01 '23 18:03 Amanieu

@rfcbot fcp cancel

Amanieu avatar Mar 05 '23 15:03 Amanieu

@Amanieu proposal cancelled.

rfcbot avatar Mar 05 '23 16:03 rfcbot