On a rv64 without f32 or vector support, this will be passed across
the basic block as an i64. We need use i32 as an intermediate type
with bitcast and anyext/trunc.
Fixes PR58025
Paths
| Differential D134758
[RISCV][SelectionDAGBuilder] Fix crash when copying a v1f32 vector between basic blocks. ClosedPublic Authored by craig.topper on Sep 27 2022, 12:52 PM.
Details Summary On a rv64 without f32 or vector support, this will be passed across Fixes PR58025
Diff Detail
Event Timeline
Comment Actions LGTM (with the description comment about how this can happen)
This revision is now accepted and ready to land.Sep 28 2022, 3:54 AM Closed by commit rG12357e88af66: [RISCV][SelectionDAGBuilder] Fix crash when copying a v1f32 vector between… (authored by craig.topper). · Explain WhySep 28 2022, 10:14 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 463603 llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/RISCV/pr58025.ll
|
Is implicit truncation guaranteed?
A description comment might be useful.