Skip to content

for sse4a functions compare only the lower quadword#2191

Merged
sayantn merged 1 commit into
rust-lang:mainfrom
folkertdev:sse4a-compare-lower-quad
Jul 18, 2026
Merged

for sse4a functions compare only the lower quadword#2191
sayantn merged 1 commit into
rust-lang:mainfrom
folkertdev:sse4a-compare-lower-quad

Conversation

@folkertdev

Copy link
Copy Markdown
Contributor

fixes #2190

the upper quadword is undefined, see the issue.

r? sayantn
cc @nikic

@folkertdev
folkertdev force-pushed the sse4a-compare-lower-quad branch from 5ca4167 to bb1049f Compare July 16, 2026 09:51
@folkertdev
folkertdev force-pushed the sse4a-compare-lower-quad branch from bb1049f to bd6e145 Compare July 17, 2026 08:59
@sayantn
sayantn added this pull request to the merge queue Jul 18, 2026
@sayantn

sayantn commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Sorry for the late review

use stdarch_test::simd_test;

// Normally this requires SSE2, but for tests it does not matter whether we use the instruction.
fn _mm_cvtsi128_si64(a: __m128i) -> i64 {

@sayantn sayantn Jul 18, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not to hold the queue up, but why did you not use the sse2 function? sse4a does imply sse2

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well we already import use crate::core_arch::x86::*; here but it couldn't find that function. Maybe some cfg is incorrect somewhere? Anyhow this worked.

Merged via the queue into rust-lang:main with commit 50afa9f Jul 18, 2026
82 checks passed
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.

Invalid sse4a tests

2 participants