fallback: translate: load i16

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: load i16 M
Occurrences:41 in 21 configs, 13 test files
Snippet from:half-mem.2c9d2c61ff.ll (mutant of half-mem.ll) @flh via llvm-extract
Config:-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64
Local check:reproduces at d9924131a4
Compiler Explorer:https://godbolt.org/z/Mezv8aGbe (llc-assertions-trunk, checked 2026-10-30 09:36 UTC): G falls back differently

Snippet:

@G.2 = external global i16
@G.3 = external global ptr

; Function Attrs: nounwind
define half @flh(ptr %a) #0 {
  %LGV2 = load i16, ptr @G.2, align 2
  %1 = load half, ptr %a, align 2
  %2 = getelementptr half, ptr %a, i32 3
  %3 = load half, ptr %2, align 2
  %G = getelementptr bfloat, ptr %2, i16 %LGV2
  %4 = fadd half %1, %3
  store ptr %G, ptr @G.3, align 8
  ret half %4
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*015remark: <unknown>:0:0: unable to legalize instruction: %11:_(s16) = G_FADD %3:_, %6:_ (in function: flh)
warning: Instruction selection used fallback path for flh
SelectionDAG (control)-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64 -global-isel=0015-

Reproduce:

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

Local llc output:

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

Occurrences (41) (first 15):

InputFunctionConfig
double-br-fcmp.2a522f18f0.ll (mutant of double-br-fcmp.ll)br_fcmp_oeq_alt-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-br-fcmp.a52ee0caec.ll (mutant of double-br-fcmp.ll)br_fcmp_oeq_alt-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-convert-strict.5c3d6f43fb.ll (mutant of double-convert-strict.ll)fcvt_w_d-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
double-convert-strict.7d458ded18.ll (mutant of double-convert-strict.ll)fcvt_w_d-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
double-convert-strict.85c61b1cf6.ll (mutant of double-convert-strict.ll)fcvt_d_w_i16-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
double-convert-strict.86345e4662.ll (mutant of double-convert-strict.ll)fcvt_d_w_i16-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
double-convert.34a77164b0.ll (mutant of double-convert.ll)fcvt_d_w_load-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-convert.ee18b6d7c6.ll (mutant of double-convert.ll)fcvt_d_w_load-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-intrinsics.c24b04ed15.ll (mutant of double-intrinsics.ll)sin_f64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-intrinsics.eb12b2e7c5.ll (mutant of double-intrinsics.ll)sin_f64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv.62ae2a436a.ll (mutant of double-round-conv.ll)test_floor_si32-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-round-conv.beef458697.ll (mutant of double-round-conv.ll)test_floor_si32-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
float-convert-strict.1ada0c9e58.ll (mutant of float-convert-strict.ll)fcvt_wu_s_multiple_use-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32
float-convert-strict.85fd3599db.ll (mutant of float-convert-strict.ll)fcvt_wu_s_multiple_use-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64
float-mem.39044cc899.ll (mutant of float-mem.ll)flw-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -target-abi=lp64

Generated 2026-11-29 14:49 UTC.