fallback: translate: load i8~

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: load i8~ M
Occurrences:10 in 10 configs, 7 test files, 16 more counted only
Snippet from:srem-seteq-illegal-types.fd6fe853a9.ll (mutant of srem-seteq-illegal-types.ll) @test_srem_even via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zdinx,+zvbb -O2 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i4

; Function Attrs: nounwind
define i1 @test_srem_even(i4 %X) #0 {
  %LGV = load i4, ptr @G.1, align 1
  %srem = srem i4 %X, 6
  %C = icmp slt i4 %srem, %LGV
  %cmp = icmp eq i4 %srem, 1
  store i1 %C, ptr poison, align 1
  ret i1 %cmp
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+m,+zdinx,+zvbb -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zdinx,+zvbb -O2 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: load: '  %LGV = load i4, ptr @G.1, align 1' (in function: test_srem_even)
warning: Instruction selection used fallback path for test_srem_even

Occurrences (10):

InputFunctionConfig
bswap-bitreverse.04db63aa6b.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i7-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadba,+zdinx -O3
bswap-bitreverse.6f3b22e762.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i7-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zvkb -O2
bswap-bitreverse.e727fb5f50.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i7-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx,+m -O1
clmul.042df19dbf.ll (mutant of clmul.ll)clmul_i4-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2
clmul.7a6c7144a1.ll (mutant of clmul.ll)clmul_i4_noimplicitfloat-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O2
clmulh.f32fed5c1d.ll (mutant of clmulh.ll)clmulh_i4-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O0
sadd_sat_plus.6e7220dcac.ll (mutant of sadd_sat_plus.ll)func4-mtriple=riscv64 -mattr=+m,+zbb,+zicond,+zfinx -O1 -code-model=small -verify-machineinstrs
srem-seteq-illegal-types.fd6fe853a9.ll (mutant of srem-seteq-illegal-types.ll)test_srem_even-mtriple=riscv32 -mattr=+m,+zdinx,+zvbb -O2 -verify-machineinstrs
ssub_sat_plus.73ccb04cb6.ll (mutant of ssub_sat_plus.ll)func4-mtriple=riscv32 -mattr=+m,+zbb,+zvbb,+zhinx -O2 -verify-machineinstrs
uadd_sat.189b2cc14b.ll (mutant of uadd_sat.ll)func3-mtriple=riscv32 -mattr=+m,+zdinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.