crash: LLVM ERROR: Found 1 machine code errors.

Run:main-d9924131a4-20261128-102057
Kind:crash
Category:LLVM ERROR: Found 1 machine code errors.
Occurrences:153 in 32 configs, 33 test files
Snippet from:fixed-vectors-stepvector.ll @stepvector_v2i8 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at d9924131a4
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  (0x55f2a726d820)
- 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       0x000055f29fcb5b5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055f29fcb2b31 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055f29fcb65db
3  libc.so.6 0x00007f4315645330
4  libc.so.6 0x00007f431569ebec pthread_kill + 284
5  libc.so.6 0x00007f431564527e gsignal + 30
6  libc.so.6 0x00007f43156288ff abort + 223
7  llc       0x000055f29fc0df6d llvm::report_fatal_error(llvm::Twine const&, bool) + 429
8  llc       0x000055f29ea70713
9  llc       0x000055f29ea71873
10 llc       0x000055f29e92e891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
11 llc       0x000055f29eeca7f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
12 llc       0x000055f29eed2d12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
13 llc       0x000055f29eecb5a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
14 llc       0x000055f29e1258c9
15 llc       0x000055f29e122a53 main + 1747
16 libc.so.6 0x00007f431562a1ca
17 libc.so.6 0x00007f431562a28b __libc_start_main + 139
18 llc       0x000055f29e121b65 _start + 37

Occurrences (153) (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.