| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | crash |
| Category: | LLVM ERROR: Found 2 machine code errors. |
| Occurrences: | 3 in 3 configs, 3 test files, 151 more counted only |
| Snippet from: | vsetvli-insert-O0.ll @intrinsic_same_vlmax via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | https://godbolt.org/z/5heqPxzYK (llc-assertions-trunk, checked 2026-10-26 12:20 UTC): G reproduces |
; Function Attrs: nounwind
define <vscale x 1 x double> @intrinsic_same_vlmax(<vscale x 1 x double> %a, <vscale x 1 x double> %b) #0 {
entry:
%0 = tail call i64 @llvm.riscv.vsetvlimax.i64(i64 2, i64 7)
%1 = tail call <vscale x 1 x double> @llvm.riscv.vfadd.nxv1f64.nxv1f64.i64(<vscale x 1 x double> poison, <vscale x 1 x double> %a, <vscale x 1 x double> %b, i64 7, i64 %0)
%2 = tail call <vscale x 1 x double> @llvm.riscv.vfadd.nxv1f64.nxv1f64.i64(<vscale x 1 x double> poison, <vscale x 1 x double> %1, <vscale x 1 x double> %b, i64 7, i64 %0)
ret <vscale x 1 x double> %2
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 1 x double> @llvm.riscv.vfadd.nxv1f64.nxv1f64.i64(<vscale x 1 x double>, <vscale x 1 x double>, <vscale x 1 x double>, i64 immarg, i64) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.riscv.vsetvlimax.i64(i64 immarg, i64 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
| Pane | Options | Exit | Insts | stderr |
|---|---|---|---|---|
| GlobalISel | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* | 134 | 0 | # After InstructionSelect # Machine code for function intrinsic_same_vlmax: IsSSA, TracksLiveness, Legalized, RegBankSelected, Selected |
| SelectionDAG (control) | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 -global-isel=0 | 0 | 7 | - |
llc -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o - llc -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 -global-isel=0 snippet.ll -o -
# After InstructionSelect # Machine code for function intrinsic_same_vlmax: IsSSA, TracksLiveness, Legalized, RegBankSelected, Selected Function Live Ins: $v8, $v9 bb.1.entry: liveins: $v8, $v9 %0:vr = COPY $v8 %1:vr = COPY $v9 %4:vr = IMPLICIT_DEF %2:gprnox0 = PseudoVSETVLIX0 $x0, 215, implicit-def $vl, implicit-def $vtype %3:vr = nofpexcept PseudoVFADD_VV_M1_E64 %4:vr(tied-def 0), %0:vr, %1:vr, 7, %2:gprnox0, 6, 0 %5:vr = nofpexcept PseudoVFADD_VV_M1_E64 %4:vr(tied-def 0), %3:vr, %1:vr, 7, %2:gprnox0, 6, 0 $v8 = COPY %5:vr PseudoRET implicit $v8 # End machine code for function intrinsic_same_vlmax. *** Bad machine code: dynamic rounding mode should read FRM *** - function: intrinsic_same_vlmax - basic block: %bb.1 entry (0x56305a36cab0) - instruction: %3:vr = nofpexcept PseudoVFADD_VV_M1_E64 %4:vr(tied-def 0), %0:vr, %1:vr, 7, %2:gprnox0, 6, 0 *** Bad machine code: dynamic rounding mode should read FRM *** - function: intrinsic_same_vlmax - basic block: %bb.1 entry (0x56305a36cab0) - instruction: %5:vr = nofpexcept PseudoVFADD_VV_M1_E64 %4:vr(tied-def 0), %3:vr, %1:vr, 7, %2:gprnox0, 6, 0 LLVM ERROR: Found 2 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=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 -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 '@intrinsic_same_vlmax' 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 0x0000563039c8eb5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43 1 llc 0x0000563039c8bb31 llvm::sys::RunSignalHandlers() + 369 2 llc 0x0000563039c8f5db 3 libc.so.6 0x00007fd388245330 4 libc.so.6 0x00007fd38829ebec pthread_kill + 284 5 libc.so.6 0x00007fd38824527e gsignal + 30 6 libc.so.6 0x00007fd3882288ff abort + 223 7 llc 0x0000563039be6f6d llvm::report_fatal_error(llvm::Twine const&, bool) + 429 8 llc 0x0000563038a49713 9 llc 0x0000563038a4a873 10 llc 0x0000563038907891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513 11 llc 0x0000563038ea37f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871 12 llc 0x0000563038eabd12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50 13 llc 0x0000563038ea45a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000 14 llc 0x00005630380fe8c9 15 llc 0x00005630380fba53 main + 1747 16 libc.so.6 0x00007fd38822a1ca 17 libc.so.6 0x00007fd38822a28b __libc_start_main + 139 18 llc 0x00005630380fab65 _start + 37
| Input | Function | Config |
|---|---|---|
| vsetvli-insert-O0.ll | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 | |
| vsetvli-insert-crossbb.ll | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O2 | |
| rv64-spill-vector-csr.365af1b71a.ll (mutant of rv64-spill-vector-csr.ll) | -mtriple=riscv64 -mattr=+v,+d,+prefer-vsetvli-over-read-vlenb,+zve64d -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.