| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | crash |
| Category: | remark: <unknown>:0:0: unable to legalize instruction: N:_(<4 x f32>) = G_LOAD N:_(p0) :: (dereferenceable load (<4 x f32>) from @G.18) |
| Occurrences: | 3 in 3 configs, 1 test files, 9 more counted only |
| Snippet from: | double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.1ccf61f90a.ll (mutant of double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.ll) via full input |
| Config: | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | https://godbolt.org/z/jh4xKTW59 (llc-assertions-trunk, checked 2026-11-27 15:31 UTC): G crashes differently |
; ModuleID = '<stdin>'
source_filename = "<stdin>"
@G = global i1 false
@G.1 = global <4 x i1> splat (i1 true)
@G.2 = global <4 x i32> splat (i32 -1)
@G.3 = global i32 42
@G.4 = global double 0.000000e+00
@G.5 = global i1 false
@G.6 = global i1 false
@G.7 = global i32 -2147483648
@G.8 = global double +inf
@G.9 = global <8 x i8> splat (i8 -128)
@G.10 = global i64 1
@G.11 = global i16 1
@G.12 = global i1 false
@G.13 = global i128 -170141183460469231731687303715884105728
@G.14 = global <4 x i32> splat (i32 65536)
@G.15 = global i1 false
@G.16 = global i8 1
@G.17 = global i1 false
@G.18 = global <4 x float> splat (float 4.200000e+01)
@G.19 = global i128 1
@G.20 = global i32 42
; Function Attrs: nounwind
declare float @fcvt_s_d(double) #0
; Function Attrs: nounwind
declare double @fcvt_d_s(float) #0
; Function Attrs: nounwind
declare i32 @fcvt_w_d(double) #0
; Function Attrs: nounwind
declare i32 @fcvt_w_d_sat(double) #0
; Function Attrs: nounwind
declare i32 @fcvt_wu_d(double) #0
; Function Attrs: nounwind
declare i32 @fcvt_wu_d_multiple_use(double, ptr) #0
; Function Attrs: nounwind
declare i32 @fcvt_wu_d_sat(double) #0
; Function Attrs: nounwind
declare double @fcvt_d_w(i32) #0
; Function Attrs: nounwind
declare double @fcvt_d_w_load(ptr) #0
; Function Attrs: nounwind
declare double @fcvt_d_wu(i32) #0
; Function Attrs: nounwind
declare double @fcvt_d_wu_load(ptr) #0
; Function Attrs: nounwind
declare i64 @fcvt_l_d(double) #0
; Function Attrs: nounwind
declare i64 @fcvt_l_d_sat(double) #0
; Function Attrs: nounwind
declare i64 @fcvt_lu_d(double) #0
; Function Attrs: nounwind
declare i64 @fcvt_lu_d_sat(double) #0
; Function Attrs: nounwind
declare i64 @fmv_x_d(double, double) #0
; Function Attrs: nounwind
declare double @fcvt_d_l(i64) #0
; Function Attrs: nounwind
declare double @fcvt_d_lu(i64) #0
; Function Attrs: nounwind
declare double @fmv_d_x(i64, i64) #0
; Function Attrs: nounwind
declare double @fcvt_d_w_i8(i8 signext) #0
; Function Attrs: nounwind
declare double @fcvt_d_wu_i8(i8 zeroext) #0
; Function Attrs: nounwind
declare double @fcvt_d_w_i16(i16 signext) #0
; Function Attrs: nounwind
declare double @fcvt_d_wu_i16(i16 zeroext) #0
; Function Attrs: nounwind
declare signext i32 @fcvt_d_w_demanded_bits(i32 signext, ptr) #0
; Function Attrs: nounwind
declare signext i32 @fcvt_d_wu_demanded_bits(i32 signext, ptr) #0
; Function Attrs: nounwind
declare signext i16 @fcvt_w_s_i16(double) #0
; Function Attrs: nounwind
define signext i16 @fcvt_w_s_sat_i16(double %a) #0 {
start:
%A9 = alloca i1, align 1
store i1 poison, ptr %A9, align 1
%A6 = alloca <4 x float>, align 16
%L7 = load i1, ptr %A6, align 1
%L = load i1, ptr %A6, align 1
store <4 x float> poison, ptr %A6, align 16
%A = alloca i1, align 1
store i1 true, ptr %A, align 1
%LGV2 = load i64, ptr @G.10, align 4
%LGV = load <8 x i8>, ptr @G.9, align 8
%B8 = urem i1 %L, %L7
%C = fcmp uge <4 x float> splat (float 4.200000e+01), splat (float 1.401300e-45)
%0 = tail call i16 @llvm.fptosi.sat.i16.f64(double %a)
store i1 %B8, ptr %A9, align 1
switch i64 %LGV2, label %SW_D [
i64 3381726621194099071, label %SW_C
]
BB: ; preds = %SW_C, %SW_D
store <4 x i1> %C, ptr @G.1, align 1
%B1 = shl <8 x i8> splat (i8 1), %LGV
%B3 = urem i16 %0, -1
%LGV4 = load <4 x float>, ptr @G.18, align 16
%B = fdiv double %a, 0.000000e+00
store <8 x i8> %B1, ptr @G.9, align 8
%B5 = frem <4 x float> %LGV4, %LGV4
store <4 x float> %B5, ptr %A6, align 16
store double %B, ptr poison, align 8
%C2 = fcmp one double %B, %a
store i1 %C2, ptr poison, align 1
%B4 = sdiv i1 %C2, false
%B6 = or i1 %B4, true
store i1 %B6, ptr @G.12, align 1
%B7 = udiv i128 -1, -1
store i1 %B4, ptr @G.5, align 1
store i128 %B7, ptr @G.19, align 4
ret i16 %B3
SW_D: ; preds = %start
%C5 = icmp ult i32 42, 65536
store i1 %C5, ptr %A, align 1
br label %BB
SW_C: ; preds = %SW_C, %start
%LGV9 = load i32, ptr @G.20, align 4
%LGV1 = load i1, ptr @G.15, align 1
%B2 = udiv i1 false, %LGV1
%G = getelementptr i1, ptr %A, i32 65536
%G10 = getelementptr <2 x i64>, ptr %A6, i32 %LGV9
%C1 = fcmp oge double %a, %a
store ptr %G, ptr poison, align 8
store i1 %B2, ptr @G.12, align 1
%C3 = fcmp true double %a, %a
store i1 %C3, ptr poison, align 1
store ptr %G10, ptr poison, align 8
br i1 %C1, label %BB, label %SW_C
}
; Function Attrs: nounwind
declare zeroext i16 @fcvt_wu_s_i16(double) #0
; Function Attrs: nounwind
declare zeroext i16 @fcvt_wu_s_sat_i16(double) #0
; Function Attrs: nounwind
declare signext i8 @fcvt_w_s_i8(double) #0
; Function Attrs: nounwind
declare signext i8 @fcvt_w_s_sat_i8(double) #0
; Function Attrs: nounwind
define zeroext i8 @fcvt_wu_s_i8(double %a) #0 {
%C4 = fcmp one double %a, 1.000000e+00
%C2 = fcmp ugt half +qnan, +inf
%A3 = alloca i1, align 1
store i1 poison, ptr %A3, align 1
%A = alloca i1, align 1
store i1 %C2, ptr %A, align 1
%C = fcmp true double %a, 4.940660e-324
br i1 %C, label %T, label %F
BB: ; preds = %F, %T
%1 = fptoui double %a to i8
%C3 = fcmp oge double %a, 1.000000e+00
%B3 = fdiv double %a, %a
%B = fdiv double %a, %a
%C1 = fcmp ult double %B3, 0.000000e+00
store i1 %C3, ptr @G, align 1
store double %B3, ptr @G.8, align 8
%C5 = icmp sge i1 %C4, true
store i1 %C4, ptr %A3, align 1
store double %B, ptr @G.4, align 8
store i1 %C1, ptr @G.17, align 1
store i1 %C5, ptr %A3, align 1
ret i8 %1
T: ; preds = %T, %0
%L = load i1, ptr %A, align 1
%B1 = or i1 %L, %C
br i1 %B1, label %T, label %BB
F: ; preds = %0
%B2 = srem <4 x i32> zeroinitializer, splat (i32 42)
store <4 x i32> %B2, ptr poison, align 16
br label %BB
}
; Function Attrs: nounwind
declare zeroext i8 @fcvt_wu_s_sat_i8(double) #0
; Function Attrs: nounwind
declare zeroext i32 @fcvt_wu_d_sat_zext(double) #0
; Function Attrs: nounwind
declare signext i32 @fcvt_w_d_sat_sext(double) #0
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.fptosi.sat.i16.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fptosi.sat.i32.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.fptosi.sat.i64.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.fptosi.sat.i8.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.fptoui.sat.i16.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fptoui.sat.i32.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.fptoui.sat.i64.f64(double) #1
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.fptoui.sat.i8.f64(double) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
| Pane | Options | Exit | Insts | stderr |
|---|---|---|---|---|
| GlobalISel | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* | 134 | 0 | remark: <unknown>:0:0: unable to legalize instruction: %47:_(<4 x f32>) = G_LOAD %48:_(p0) :: (dereferenceable load (<4 x f32>) from @G.18) (in function: fcvt_w_s_sat_i16) warning: Instruction selection used fallback path for fcvt_w_s_sat_i16 Unhandled predicate |
| SelectionDAG (control) | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 -global-isel=0 | 0 | 160 | - |
llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o - llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 -global-isel=0 snippet.ll -o -
remark: <unknown>:0:0: unable to legalize instruction: %47:_(<4 x f32>) = G_LOAD %48:_(p0) :: (dereferenceable load (<4 x f32>) from @G.18) (in function: fcvt_w_s_sat_i16) warning: Instruction selection used fallback path for fcvt_w_s_sat_i16 Unhandled predicate UNREACHABLE executed at /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp:2295! 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 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o - 1. Running pass 'Function Pass Manager' on module '<stdin>'. 2. Running pass 'InstructionSelect' on function '@fcvt_wu_s_i8' 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 0x000055936fd51c1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43 1 llc 0x000055936fd4ebf1 llvm::sys::RunSignalHandlers() + 369 2 llc 0x000055936fd5269b 3 libc.so.6 0x00007f8b33845330 4 libc.so.6 0x00007f8b3389ebec pthread_kill + 284 5 libc.so.6 0x00007f8b3384527e gsignal + 30 6 libc.so.6 0x00007f8b338288ff abort + 223 7 llc 0x000055936fcaa56f 8 llc 0x000055936e3cabce 9 llc 0x000055936e3befd3 10 llc 0x000055937064ab17 llvm::InstructionSelectImpl::selectMachineFunction(llvm::MachineFunction&) + 1255 11 llc 0x000055937064c2b1 llvm::InstructionSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) + 417 12 llc 0x000055936e9ca761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513 13 llc 0x000055936ef66a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871 14 llc 0x000055936ef6ef92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50 15 llc 0x000055936ef67820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000 16 llc 0x000055936e1c1689 17 llc 0x000055936e1be813 main + 1747 18 libc.so.6 0x00007f8b3382a1ca 19 libc.so.6 0x00007f8b3382a28b __libc_start_main + 139 20 llc 0x000055936e1bd925 _start + 37
| Input | Function | Config |
|---|---|---|
| double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.18213acae6.ll (mutant of double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.ll) | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zicond,+zvbb,+zba,+zfhmin,+zfh -O3 | |
| double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.1ccf61f90a.ll (mutant of double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.ll) | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zba,+zfhmin,+zfh -O1 | |
| double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.45237423.d1436b90.ll | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zicond,+zvbb,+zba,+zfhmin,+zfh -O1 |
Generated 2026-11-29 14:49 UTC.