Skip to content

ICE with unusual vector sizes #53

Closed
rust-lang/rust
#80652
@calebzulawski

Description

@calebzulawski

When trying to make a vector with only 3 lanes, the following occurs:

error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:448:55: unknown intrinsic 'llvm.ceil.v3f64'

A couple options:

  • Only support power-of-two vector lengths. This is probably fine (at least for the MVP) but would probably require a new attribute for restricting the const generic implementation.
  • Patch rustc to use the next power of two for ceil etc. Most other ops seem to work fine with unusual vector sizes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions