fallback: translate: call llvm.abs.i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.abs.i8 M
Occurrences:5 in 5 configs, 1 test files, 29 more counted only
Snippet from:iabs.c6d41119bd.ll (mutant of iabs.ll) @zext_abs8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zcb,+zhinx -O0 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i32 @zext_abs8(i8 signext %x) {
  %a = call i8 @llvm.abs.i8(i8 %x, i1 false)
  %B = lshr i8 %a, %x
  %b = zext i8 %a to i32
  store i8 %B, ptr poison, align 1
  ret i32 %b
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.abs.i8(i8, i1 immarg) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zcb,+zhinx -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zcb,+zhinx -O0 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.abs.i8: '  %a = call i8 @llvm.abs.i8(i8 %x, i1 false)' (in function: zext_abs8)
warning: Instruction selection used fallback path for zext_abs8

Occurrences (5):

InputFunctionConfig
iabs.13708d4a2b.ll (mutant of iabs.ll)zext16_abs8-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O2
iabs.31e818c334.ll (mutant of iabs.ll)zext64_abs8-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+c,+zdinx -O2 -code-model=small
iabs.6eba26fbf3.ll (mutant of iabs.ll)zext16_abs8-mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zdinx -O0
iabs.bbf6ef0368.ll (mutant of iabs.ll)zext16_abs8-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1
iabs.c6d41119bd.ll (mutant of iabs.ll)zext_abs8-mtriple=riscv64 -verify-machineinstrs -mattr=+zcb,+zhinx -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.