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

fix _mm_castsi128_pd and _mm_castpd_si128 impls #581

Merged
merged 5 commits into from
Oct 23, 2018

Conversation

kazcw
Copy link
Contributor

@kazcw kazcw commented Oct 23, 2018

The _mm_castX_Y SSE intrinsics are "reinterpreting" casts; LLVM's
simd_cast is a "converting" cast. Replace simd_casts with mem::transmute.
Fixes rust-lang/rust#55249

The _mm_castX_Y SSE intrinsics are "reinterpreting" casts; LLVM's
simd_cast is a "converting" cast. Replace simd_cast with mem::transmute.
Fixes #55249
@alexcrichton
Copy link
Member

Thanks for this! This looks correct to me, and I'm trying to dig into why CI is failing now.

@alexcrichton
Copy link
Member

Ok the segfault here is not the fault of this PR. I'm looking into pinning CI temoprarily to an older nightly to fix CI

Copy link
Contributor

@gnzlbg gnzlbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@alexcrichton alexcrichton merged commit 431766a into rust-lang:master Oct 23, 2018
@alexcrichton
Copy link
Member

@kazcw if you're extra enterprising, the next step here is to update the src/stdsimd submodule in rust-lang/rust, and that should be all that's necessary to get the fix into nightly!

@kazcw
Copy link
Contributor Author

kazcw commented Oct 23, 2018

@alexcrichton Cool! rust-lang/rust#55291

@MaskRay
Copy link

MaskRay commented Jan 2, 2023

# It's not clear why -Z plt=yes is required here. Probably a bug in LLVM. # If you can remove it and CI passes, please feel free to do so!`

Likely due to rust-lang/rust#54592 switching the default.

If you use lld, it didn't support -fno-plt general-dynamic/local-dynamic TLS models until 2022-12-31 (llvm/llvm-project@8dc7366).

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.

simd sse2: si128/pd casts emitting conversions
4 participants