Skip to content

Conversation

g2p
Copy link

@g2p g2p commented Nov 27, 2020

Cherry pick https://reviews.llvm.org/D92206

This addresses rust-lang/stdarch#957 (for _mm_cvt_roundss_u32 but not for _mm512_shuffle_ps).

A test is at rust-lang/rust#79382.
This can also be tested with an unpatched rustc, with the following command:

RUSTFLAGS_NOT_BOOTSTRAP="-Cpasses=sancov -Clink-dead-code -Zsanitizer=memory -C codegen-units=1" ./x.py build -i library/core 

Scalar intrinsics x86.avx512*_cvt* have an extra rounding mode operand.
We can directly ignore it to reuse the SSE/AVX math.
This fix the bug https://bugs.llvm.org/show_bug.cgi?id=48298.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D92206
@nikic nikic merged commit dd2759e into rust-lang:rustc/11.0-2020-10-12 Nov 27, 2020
tmandry added a commit to tmandry/rust that referenced this pull request Dec 9, 2020
Update LLVM submodule

* [[msan] Fix bugs when instrumenting x86.avx512*_cvt* intrinsics](rust-lang/llvm-project#84)
* [[X86][AVX512] Only lower to VPALIGNR if we have BWI (PR48322)](rust-lang/llvm-project#85)
vext01 added a commit to vext01/llvm-project that referenced this pull request Oct 3, 2023
84: Improve unimplemented stuff and serialise instruction types. r=ltratt a=vext01



Co-authored-by: Edd Barrett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants