fallback: translate: sext i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sext i64 M
Occurrences:4 in 3 configs, 2 test files, 1 more counted only
Snippet from:avgceils.566363ef75.ll (mutant of avgceils.ll) @test_ext_i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @test_ext_i64(i64 %a0, i64 %a1) #0 {
  %x0 = sext i64 %a0 to i128
  %x1 = sext i64 %a1 to i128
  %sum = add i128 %x0, %x1
  %sum1 = add i128 %sum, 1
  %C = icmp sle i64 %a0, %a0
  %shift = ashr i128 %sum1, 1
  %res = trunc i128 %shift to i64
  store i1 %C, ptr poison, align 1
  ret i64 %res
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
abds.0d0219f3e2.ll (mutant of abds.ll)abd_ext_i64-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
abds.0d0219f3e2.ll (mutant of abds.ll)abd_ext_i64_undef-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
abds.a088ac1b01.ll (mutant of abds.ll)abd_ext_i64-mtriple=riscv32 -mattr=+zbb,+zfinx,+zbkb -O2 -verify-machineinstrs
avgceils.566363ef75.ll (mutant of avgceils.ll)test_ext_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O1

Generated 2026-11-29 14:49 UTC.