crash: LLVM ERROR: Found 1 machine code errors.

Run:explore-b577f07195-20261129-105236
Kind:crash
Category:LLVM ERROR: Found 1 machine code errors.
Occurrences:77 in 31 configs, 32 test files, 1051 more counted only
Snippet from:fixed-vectors-stepvector.ll @stepvector_v2i8 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:https://godbolt.org/z/jMYe3Y4T9 (llc-assertions-trunk, checked 2026-10-25 18:43 UTC): G reproduces

Snippet:

define <2 x i8> @stepvector_v2i8() {
  %v = call <2 x i8> @llvm.stepvector.v2i8()
  ret <2 x i8> %v
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <2 x i8> @llvm.stepvector.v2i8() #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340
# After IRTranslator
# Machine code for function stepvector_v2i8: IsSSA, TracksLiveness
SelectionDAG (control)-mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel=003-

Reproduce:

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

Local llc output:

# After IRTranslator
# Machine code for function stepvector_v2i8: IsSSA, TracksLiveness
bb.1 (%ir-block.0):
  %0:_(<2 x i8>) = G_STEP_VECTOR i8 1
  %1:_(<vscale x 1 x i8>) = G_IMPLICIT_DEF
  %2:_(<vscale x 1 x i8>) = G_INSERT_SUBVECTOR %1:_, %0:_(<2 x i8>), 0
  $v8 = COPY %2:_(<vscale x 1 x i8>)
  PseudoRET implicit $v8
# End machine code for function stepvector_v2i8.
*** Bad machine code: Destination type must be a scalable vector ***
- function:    stepvector_v2i8
- basic block: %bb.1  (0x55974bdf7e30)
- instruction: %0:_(<2 x i8>) = G_STEP_VECTOR i8 1
LLVM ERROR: Found 1 machine code errors.
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=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'Verify generated machine code' on function '@stepvector_v2i8'
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       0x000055974683b9eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x00005597468389c1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055974683c46b
3  libc.so.6 0x00007fc04dc45330
4  libc.so.6 0x00007fc04dc9ebec pthread_kill + 284
5  libc.so.6 0x00007fc04dc4527e gsignal + 30
6  libc.so.6 0x00007fc04dc288ff abort + 223
7  llc       0x0000559746793dfd llvm::report_fatal_error(llvm::Twine const&, bool) + 429
8  llc       0x00005597455f7533
9  llc       0x00005597455f8693
10 llc       0x00005597454b56b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
11 llc       0x0000559745a50b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
12 llc       0x0000559745a59052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
13 llc       0x0000559745a518e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
14 llc       0x0000559744cac149
15 llc       0x0000559744ca92d3 main + 1747
16 libc.so.6 0x00007fc04dc2a1ca
17 libc.so.6 0x00007fc04dc2a28b __libc_start_main + 139
18 llc       0x0000559744ca83e5 _start + 37

Occurrences (77) (first 15):

InputFunctionConfig
half-convert.ll-mtriple=riscv32 -mattr=+d -target-abi=ilp32d -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfh,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfhmin,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv64 -mattr=+m,+v,+zvfh,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv64 -mattr=+m,+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv64 -mattr=+m,+v,+zvfhmin,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-extract-subvector.ll-mtriple=riscv64 -mattr=+m,+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-insert-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfh,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-insert-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfh,+zvfbfmin -verify-machineinstrs
fixed-vectors-insert-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfhmin,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-insert-subvector.ll-mtriple=riscv32 -mattr=+m,+v,+zvfhmin,+zvfbfmin -verify-machineinstrs
fixed-vectors-insert-subvector.ll-mtriple=riscv64 -mattr=+m,+v,+zvfh,+zvfbfmin -riscv-v-vector-bits-max=128 -verify-machineinstrs
fixed-vectors-insert-subvector.ll-mtriple=riscv64 -mattr=+m,+v,+zvfh,+zvfbfmin -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.