fallback: translate: and i128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: and i128 M
Occurrences:3 in 3 configs, 3 test files, 18 more counted only
Snippet from:split-urem-by-constant.f3fea4094e.ll (mutant of split-urem-by-constant.ll) @test_urem_15 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O1 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i128

; Function Attrs: nounwind
define i128 @test_urem_15(i128 %x) #0 {
  %B = and i128 %x, -1
  %a = urem i128 %x, 15
  store i128 %B, ptr @G.1, align 4
  ret i128 %a
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: and: '  %B = and i128 %x, -1' (in function: test_urem_15)
warning: Instruction selection used fallback path for test_urem_15

Occurrences (3):

InputFunctionConfig
calling-conv-lp64e.30f3112544.ll (mutant of calling-conv-lp64e.ll)caller_i128_on_stack-mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -mattr=+zdinx,+zbb -O2
half-arith.decfd5423d.ll (mutant of half-arith.ll)fmin_h-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
split-urem-by-constant.f3fea4094e.ll (mutant of split-urem-by-constant.ll)test_urem_15-mtriple=riscv64 -mattr=+zdinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.