clang crashes with an APInt assertion failure during LoopVectorize on rv64gcv targets while compiling at -O2/-O3.
The issue disappears with -fno-vectorize but still reproduces with -fno-slp-vectorize, isolating the problem to LoopVectorize.
Reproducer command:
/riscv-gnu-toolchain-build/bin/clang \
-I/compiler-fuzz-ci/csmith-build/include \
-fsigned-char -fno-strict-aliasing -fwrapv -march=rv64gcv_zvl256b -O3 \
red.c -o rv64gcv.out -w
Attachments:
Compiler opt compiler-opts.txt
Verbose trace verbose-logs.txt
Preprocessed source and associated run script:
red-767c0a.c
red-767c0a.sh
Verbose error logs:
APInt(...): Assertion `llvm::isIntN(BitWidth, val) && "Value is not an N-bit signed value"' failed.
Verified on clang version 23.0.0git (https://github.com/llvm/llvm-project.git d0646cb)
This issue is Found via fuzzer.
clang crashes with an APInt assertion failure during LoopVectorize on
rv64gcvtargets while compiling at-O2/-O3.The issue disappears with
-fno-vectorizebut still reproduces with-fno-slp-vectorize, isolating the problem to LoopVectorize.Reproducer command:
Attachments:
Compiler opt compiler-opts.txt
Verbose trace verbose-logs.txt
Preprocessed source and associated run script:
red-767c0a.c
red-767c0a.sh
Verbose error logs:
Verified on clang version 23.0.0git (https://github.com/llvm/llvm-project.git d0646cb)
This issue is Found via fuzzer.