| Run: | main-d9924131a4-20261128-102057 |
| Kind: | crash |
| Category: | LLVM ERROR: Found 2 machine code errors. |
| Occurrences: | 8 in 6 configs, 4 test files |
| 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 (0x558746c3bab0) - 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 (0x558746c3bab0) - 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 0x0000558734efeb5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43 1 llc 0x0000558734efbb31 llvm::sys::RunSignalHandlers() + 369 2 llc 0x0000558734eff5db 3 libc.so.6 0x00007f603d045330 4 libc.so.6 0x00007f603d09ebec pthread_kill + 284 5 libc.so.6 0x00007f603d04527e gsignal + 30 6 libc.so.6 0x00007f603d0288ff abort + 223 7 llc 0x0000558734e56f6d llvm::report_fatal_error(llvm::Twine const&, bool) + 429 8 llc 0x0000558733cb9713 9 llc 0x0000558733cba873 10 llc 0x0000558733b77891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513 11 llc 0x00005587341137f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871 12 llc 0x000055873411bd12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50 13 llc 0x00005587341145a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000 14 llc 0x000055873336e8c9 15 llc 0x000055873336ba53 main + 1747 16 libc.so.6 0x00007f603d02a1ca 17 libc.so.6 0x00007f603d02a28b __libc_start_main + 139 18 llc 0x000055873336ab65 _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 | |
| vsetvli-insert-O0.47ac6ea5e8.ll (mutant of vsetvli-insert-O0.ll) | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 | |
| vsetvli-insert-O0.d8bc694de4.ll (mutant of vsetvli-insert-O0.ll) | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -target-abi=lp64d -verify-machineinstrs -O0 | |
| vsetvli-insert.a3a5f2a703.ll (mutant of vsetvli-insert.ll) | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v,+vl-dependent-latency -verify-machineinstrs -O2 | |
| vsetvli-insert.cd7212929a.ll (mutant of vsetvli-insert.ll) | -mtriple=riscv64 -mattr=+m,+f,+d,+a,+c,+v -verify-machineinstrs -O2 | |
| zvfofp8min-alt-interlave.3ecc989c52.ll (mutant of zvfofp8min-alt-interlave.ll) | -mtriple=riscv64 -mattr=+v,+zvfbfmin,+experimental-zvfofp8min -verify-machineinstrs -target-abi=lp64d | |
| zvfofp8min-alt-interlave.fe8c448c2d.ll (mutant of zvfofp8min-alt-interlave.ll) | -mtriple=riscv32 -mattr=+v,+zvfbfmin,+experimental-zvfofp8min -verify-machineinstrs -target-abi=ilp32d |
Generated 2026-11-29 14:49 UTC.