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

Run:explore-bc8218b282-20261015-075519
Kind:crash
Category:LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()` NEW
Occurrences:2 in 2 configs, 1 test files
Snippet from:pr69586.839dab8130.ll (mutant of pr69586.ll) @test via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -mattr=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false
Local check:reproduces at bc8218b282
Compiler Explorer:https://godbolt.org/z/6hsb9ohMh (llc-assertions-trunk, checked 2026-10-15 08:04 UTC): G reproduces

Snippet:

define ptr @test(ptr %0, i8 %LGV1) {
SW_C5:
  %G = getelementptr <vscale x 4 x i32>, ptr %0, i8 %LGV1
  ret ptr %G
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false -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=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false -global-isel=007-

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false -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=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false -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 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       0x00005571391ef54b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x00005571391ec3f1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x00005571391effcb
3  libc.so.6 0x00007f0a4d445330
4  libc.so.6 0x00007f0a4d49ec0c pthread_kill + 284
5  libc.so.6 0x00007f0a4d44527e gsignal + 30
6  libc.so.6 0x00007f0a4d4288ff abort + 223
7  llc       0x0000557139131c4d llvm::report_fatal_error(llvm::Twine const&, bool) + 429
8  llc       0x0000557139131a96
9  llc       0x0000557139131d9b
10 llc       0x000055713b2bc056 llvm::IRTranslatorImpl::translateGetElementPtr(llvm::User const&, llvm::MachineIRBuilder&) + 2678
11 llc       0x000055713b2c8ab9 llvm::IRTranslatorImpl::translate(llvm::Instruction const&) + 889
12 llc       0x000055713b2cb43d 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       0x000055713b2cc42d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
14 llc       0x00005571397b69ed llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
15 llc       0x0000557139546d37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
16 llc       0x000055713954f232 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
17 llc       0x0000557139547ae0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
18 llc       0x00005571391f6ba8 llcMain + 12056
19 llc       0x00005571391316af main + 63
20 libc.so.6 0x00007f0a4d42a1ca
21 libc.so.6 0x00007f0a4d42a28b __libc_start_main + 139
22 llc       0x00005571391315a5 _start + 37

Occurrences (2):

InputFunctionConfig
pr69586.839dab8130.ll (mutant of pr69586.ll)-mtriple=riscv64 -mattr=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false
pr69586.a229e40d4e.ll (mutant of pr69586.ll)-mtriple=riscv64 -mattr=+m,+v,+xsfvcp --riscv-use-rematerializable-movimm=true

Generated 2026-10-15 08:05 UTC.