Skip to content
Commit 57bc7b10 authored by Craig Topper's avatar Craig Topper
Browse files

[RISCV] Prevent crashes when bitcasting between fixed vectors and scalars.

Not all scalar element types are allowed in vectors so we may not
be able to bitcast to a 1 element vector to use insert/extract.

This will become a bigger issue when the Zve extensions are commited.
For now, I'm using the ELEN limit to limit the element types.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D113219
parent 48bb5f4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment