fallback: translate: sext i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sext i64 M
Occurrences:3 in 3 configs, 1 test files, 3 more counted only
Snippet from:abds-neg.72d964d412.ll (mutant of abds-neg.ll) @abd_ext_i64_undef via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O0 -code-model=medium -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @abd_ext_i64_undef(i64 %a, i64 %b) #0 {
  %aext = sext i64 %a to i128
  %bext = sext i64 %b to i128
  %sub = sub i128 %aext, %bext
  %abs = call i128 @llvm.abs.i128(i128 %sub, i1 true)
  %nabs = sub i128 0, %abs
  %C = fcmp olt float +inf, 4.200000e+01
  %trunc = trunc i128 %nabs to i64
  store i1 %C, ptr poison, align 1
  ret i64 %trunc
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sext: '  %aext = sext i64 %a to i128' (in function: abd_ext_i64_undef)
warning: Instruction selection used fallback path for abd_ext_i64_undef

Occurrences (3):

InputFunctionConfig
abds-neg.27823ed3de.ll (mutant of abds-neg.ll)abd_ext_i64_undef-mtriple=riscv32 -mattr=+zbb,+zdinx,+zvkb -O0 -verify-machineinstrs
abds-neg.72d964d412.ll (mutant of abds-neg.ll)abd_ext_i64_undef-mtriple=riscv64 -mattr=+zdinx -O0 -code-model=medium -verify-machineinstrs
abds-neg.758cc483c1.ll (mutant of abds-neg.ll)abd_ext_i64-mtriple=riscv64 -mattr=+zbb,+zhinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.