rust-lang / rust-lang/rustc_codegen_cranelift

pathfinder_simd doesn't compile on arm64

Open
#1,583 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-core-arch C-bug O-arm
Dominant language
Rust
Stars
2.1k
Forks
157
Avg merge
1d 19h
Merged PRs (30d)
3

Description

error[E0511]: invalid monomorphization of `simd_shuffle` intrinsic: simd_shuffle index must be a SIMD vector of `u32`, got `[u32; 4]`
    --> /Users/bjorn/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pathfinder_simd-0.5.4/src/arm/swizzle_f32x4.rs:1818:24
     |
1818 |         unsafe { F32x4(simd_shuffle4!(self.0, self.0, [3, 3, 3, 3])) }
     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: this error originates in the macro `simd_shuffle4` (in Nightly builds, run with -Z macro-backtrace for more info)

This breaks compiling zed on macOS.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the macOS arm64 build failure while compiling zed and inspect pathfinder_simd-0.5.4/src/arm/swizzle_f32x4.rs at line 1818, where simd_shuffle4! is used. Investigate the reported simd_shuffle intrinsic requirement and verify that pathfinder_simd compiles successfully on arm64 without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.