fallback: translate: icmp i8~

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: icmp i8~ M
Occurrences:3 in 3 configs, 3 test files, 5 more counted only
Snippet from:srem-seteq-illegal-types.f686a1056b.ll (mutant of srem-seteq-illegal-types.ll) @test_srem_even via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -O1 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i4

; Function Attrs: nounwind
define i1 @test_srem_even(i4 %X) #0 {
  %C = icmp ne i4 %X, -1
  %B = udiv i4 %X, %X
  store i4 %B, ptr @G.2, align 1
  ret i1 %C
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: icmp: '  %C = icmp ne i4 %X, -1' (in function: test_srem_even)
warning: Instruction selection used fallback path for test_srem_even

Occurrences (3):

InputFunctionConfig
ctz_zero_return_test.5069b9b159.ll (mutant of ctz_zero_return_test.ll)test_cttz_select_i7-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O1
srem-seteq-illegal-types.f686a1056b.ll (mutant of srem-seteq-illegal-types.ll)test_srem_even-mtriple=riscv32 -mattr=+zdinx -O1 -verify-machineinstrs
uadd_sat_plus.154a48d599.ll (mutant of uadd_sat_plus.ll)func4-mtriple=riscv64 -mattr=+m,+zbb,+zihintpause,+zhinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.