fallback: translate: load i64

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: load i64 M
Occurrences:29 in 24 configs, 12 test files
Snippet from:double-imm.98d36c6ead.ll (mutant of double-imm.ll) @double_positive_zero via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
Local check:reproduces at db12fc36f6
Compiler Explorer:https://godbolt.org/z/s7xdjx6Ms (llc-assertions-trunk, checked 2026-10-30 09:36 UTC): G crashes on trunk

Snippet:

@G = external global float
@G.2 = external global i64

; Function Attrs: nounwind
define double @double_positive_zero(ptr %pd) #0 {
  %LGV1 = load i64, ptr @G.2, align 4
  %LGV = load float, ptr @G, align 4
  %C = fcmp olt float %LGV, 1.000000e+00
  %G = getelementptr ptr, ptr %pd, i64 %LGV1
  store i1 %C, ptr %G, align 1
  ret double 0.000000e+00
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/lib/CodeGen/TargetRegisterInfo.cpp:216: const TargetRegisterClass* getCommonMinimalPhysRegClass(const llvm::TargetRegisterInfo*, llvm::MCRegister, llvm::MCRegister): Assertion `BestRC && "Couldn't find the register class"' failed.
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:
SelectionDAG (control)-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel=0012-

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: load: '  %LGV1 = load i64, ptr @G.2, align 4' (in function: double_positive_zero)
warning: Instruction selection used fallback path for double_positive_zero

Occurrences (29) (first 15):

InputFunctionConfig
double-arith-strict.106588ceb9.ll (mutant of double-arith-strict.ll)fnmsub_d_2-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
double-arith-strict.2d3d229307.ll (mutant of double-arith-strict.ll)fnmsub_d_2-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
double-imm.98d36c6ead.ll (mutant of double-imm.ll)double_positive_zero-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-imm.ae19c8c0cc.ll (mutant of double-imm.ll)double_positive_zero-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-select-fcmp.9d8d99287c.ll (mutant of double-select-fcmp.ll)select_fcmp_ule-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-select-fcmp.a6c2798ca6.ll (mutant of double-select-fcmp.ll)select_fcmp_ule-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
float-arith-strict.5e6aadc0d1.ll (mutant of float-arith-strict.ll)fnmsub_s_2-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
float-arith-strict.f387ca7754.ll (mutant of float-arith-strict.ll)fnmsub_s_2-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
float-bit-preserving-dagcombines.0b52f1fbd3.ll (mutant of float-bit-preserving-dagcombines.ll)bitcast_double_xor-mtriple=riscv64 -mattr=+zfinx -target-abi=lp64 -verify-machineinstrs
float-bit-preserving-dagcombines.55649f8db9.ll (mutant of float-bit-preserving-dagcombines.ll)bitcast_double_xor-mtriple=riscv32 -mattr=+zfinx -target-abi=ilp32 -verify-machineinstrs
float-select-fcmp.0df085f606.ll (mutant of float-select-fcmp.ll)select_fcmp_ule-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -target-abi=lp64
float-select-fcmp.d5382ce821.ll (mutant of float-select-fcmp.ll)select_fcmp_ule-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -target-abi=ilp32
ghccc-without-f-reg.54fc663562.ll (mutant of ghccc-without-f-reg.ll)caller_float-mtriple=riscv64 -mattr=+zfinx,+zdinx
half-select-fcmp.67b1cca4c1.ll (mutant of half-select-fcmp.ll)select_fcmp_ule-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64
half-select-fcmp.8f144eb59d.ll (mutant of half-select-fcmp.ll)select_fcmp_ule-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi=lp64

Generated 2026-11-29 14:49 UTC.