crash: LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`

Run:explore-04ca53e65f-20261014-114124
Kind:crash
Category:LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()` NEW
Occurrences:2 in 1 configs, 1 test files
Snippet from:stack-protector-vector-clobber.382922bd43.ll (mutant of stack-protector-vector-clobber.ll) @test_stack_protector_with_vector_clobber via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -mattr=+v
Local check:reproduces at 04ca53e65f
Compiler Explorer:https://godbolt.org/z/n98dTWcG9 (llc-assertions-trunk, checked 2026-10-14 11:49 UTC): G reproduces

Snippet:

define ptr @test_stack_protector_with_vector_clobber(ptr %0, i32 %LGV) {
  %G = getelementptr <vscale x 8 x i64>, ptr %0, i32 %LGV
  ret ptr %G
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
SelectionDAG (control)-mtriple=riscv64 -mattr=+v -global-isel=0013-

Reproduce:

llc -mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v -global-isel=0 snippet.ll -o -

Local llc output:

LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'IRTranslator' on function '@test_stack_protector_with_vector_clobber'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llc       0x000055f3a6c2579b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055f3a6c22641 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055f3a6c2621b
3  libc.so.6 0x00007f2c86045330
4  libc.so.6 0x00007f2c8609ec0c pthread_kill + 284
5  libc.so.6 0x00007f2c8604527e gsignal + 30
6  libc.so.6 0x00007f2c860288ff abort + 223
7  llc       0x000055f3a6b68bcd llvm::report_fatal_error(llvm::Twine const&, bool) + 429
8  llc       0x000055f3a6b68a16
9  llc       0x000055f3a6b68d1b
10 llc       0x000055f3a8cee1a6 llvm::IRTranslatorImpl::translateGetElementPtr(llvm::User const&, llvm::MachineIRBuilder&) + 2678
11 llc       0x000055f3a8cfab99 llvm::IRTranslatorImpl::translate(llvm::Instruction const&) + 889
12 llc       0x000055f3a8cfd51d llvm::IRTranslatorImpl::runOnMachineFunction(llvm::MachineFunction&, llvm::function_ref<llvm::GISelCSEInfo* ()>, bool, llvm::function_ref<llvm::AAResults* ()>, llvm::function_ref<llvm::BranchProbabilityInfo* ()>, llvm::function_ref<llvm::AssumptionCache* ()>, llvm::TargetLibraryInfo*, llvm::LibcallLoweringInfo const*, llvm::SSPLayoutInfo*) + 4253
13 llc       0x000055f3a8cfe50d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
14 llc       0x000055f3a71ecd2d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
15 llc       0x000055f3a6f7ccd7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
16 llc       0x000055f3a6f851d2 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
17 llc       0x000055f3a6f7da80 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
18 llc       0x000055f3a6c2cdf8 llcMain + 12056
19 llc       0x000055f3a6b6862f main + 63
20 libc.so.6 0x00007f2c8602a1ca
21 libc.so.6 0x00007f2c8602a28b __libc_start_main + 139
22 llc       0x000055f3a6b68525 _start + 37

Occurrences (2):

InputFunctionConfig
stack-protector-vector-clobber.382922bd43.ll (mutant of stack-protector-vector-clobber.ll)-mtriple=riscv64 -mattr=+v
stack-protector-vector-clobber.9521d9b799.ll (mutant of stack-protector-vector-clobber.ll)-mtriple=riscv64 -mattr=+v

Generated 2026-10-15 08:05 UTC.