Closed patrick-rivos closed 1 month ago
@llvm/issue-subscribers-backend-risc-v
Author: Patrick O'Neill (patrick-rivos)
Looks like it was caused by 234cb4c6e3a382a5c0b3396647a1839699944ec0
Related variant that crashes differently on RV32. It crashes in Promote instead of Expand.
define <vscale x 4 x i64> @h(<vscale x 4 x i64> %broadcast.splatinsert, <vscale x 4 x i1> %0, <vscale x 4 x i1> %1) #0 {
entry:
%broadcast.splat = shufflevector <vscale x 4 x i64> %broadcast.splatinsert, <vscale x 4 x i64> zeroinitializer, <vscale x 4 x i32> zeroinitializer
%2 = srem <vscale x 4 x i64> %broadcast.splat, shufflevector (<vscale x 4 x i64> insertelement (<vscale x 4 x i64> poison, i64 3, i64 0), <vscale x 4 x i64> poison, <vscale x 4 x i32> zeroinitializer)
ret <vscale x 4 x i64> %2
}
ExpandIntegerResult #0: t39: i64 = mulhs t61, Constant:i64<6148914691236517206>
LLVM ERROR: Do not know how to expand the result of this operator!
Does #104525 also related to this?
C testcase:
Godbolt: https://c.godbolt.org/z/bhfrE7drT
Testcase:
Command/backtrace:
Godbolt: https://ir.godbolt.org/z/GKT1T7v3e
Found via fuzzer.