[VE] udiv
/ urem
crashes backend with assertion LHS.getValueType().isVector() == VT.isVector() && "Cannot compare scalars to vectors"
failed
#58994
Labels
Description
When targeting
ve
, usingudiv
orurem
with the last operand being a constant vector with all1
's (examples listed below) crashes backend with assertionLHS.getValueType().isVector() == VT.isVector() && "Cannot compare scalars to vectors"
failed during passVE DAG->DAG Pattern Instruction Selection
.Here are some vector operands that crash the backend:
v4i1:
<i1 true, i1 true, i1 true, i1 true>
v4i8:
<i8 255, i8 255, i8 255, i8 255>
v4i16:
<i16 65535, i16 65535, i16 65535, i16 65535>
The problem doesn't exist when using
sdiv
orsrem
.The problem doens't exist when targeting
x86_64
,aarch64
, orriscv64
.Minimal Reproduction
https://godbolt.org/z/4Kr9xMEb8
Code
Stack Trace
The text was updated successfully, but these errors were encountered: