Skip to content

Implement raw_eq intrinsic - #713

Open
nazar-pc wants to merge 1 commit into
Rust-GPU:mainfrom
nazar-pc:raw-eq-intrinsic
Open

nazar-pc wants to merge 1 commit into
Rust-GPU:mainfrom
nazar-pc:raw-eq-intrinsic

Conversation

@nazar-pc

@nazar-pc nazar-pc commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This was hit/discovered after upgrade to blake3 1.8.9, which introduced code that compiled to this intrinsic: in core, == on arrays of integers is specialized to intrinsics::raw_eq, which was missing here.

raw_eq has no fallback body, so it has to be implemented by the backend, otherwise any use of it (like PartialEq for arrays of integers, which specializes to raw_eq) results in an ICE.

Only what core calls it with is supported: (nested) arrays of integers and bools, which are compared element by element. Other types are zombied.

`raw_eq` has no fallback body, so it has to be implemented by the backend,
otherwise any use of it (like `PartialEq` for arrays of integers, which
specializes to `raw_eq`) results in an ICE.

Only what `core` calls it with is supported: (nested) arrays of integers and
`bool`s, which are compared element by element. Other types are zombied.
@nazar-pc

nazar-pc commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

macOS runner must be crashing like on other PRs. Maybe it runs out of memory or something? There must be a good reason for it.

This branch has not been deployed

No deployments
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.

1 participant