fallback: translate: trunc i128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: trunc i128 M
Occurrences:5 in 3 configs, 2 test files, 3 more counted only
Snippet from:calling-conv-lp64-lp64f-lp64d-common.d704f4e195.ll (mutant of calling-conv-lp64-lp64f-lp64d-common.ll) @callee_i128_in_regs via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zfinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @callee_i128_in_regs(i64 %a, i128 %b) #0 {
  %b_trunc = trunc i128 %b to i64
  %1 = add i64 %a, %b_trunc
  %C = fcmp true float 1.401300e-45, f0x7F7FFFFF
  store i1 %C, ptr poison, align 1
  ret i64 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: trunc: '  %b_trunc = trunc i128 %b to i64' (in function: callee_i128_in_regs)
warning: Instruction selection used fallback path for callee_i128_in_regs

Occurrences (5):

InputFunctionConfig
calling-conv-lp64-lp64f-lp64d-common.3711e2efa8.ll (mutant of calling-conv-lp64-lp64f-lp64d-common.ll)callee_aligned_stack-mtriple=riscv64 -verify-machineinstrs -mattr=+zicond,+zhinx -O0
calling-conv-lp64-lp64f-lp64d-common.d704f4e195.ll (mutant of calling-conv-lp64-lp64f-lp64d-common.ll)callee_i128_in_regs-mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause,+zfinx -O1
calling-conv-lp64e.29c622cf13.ll (mutant of calling-conv-lp64e.ll)callee_i128_in_regs-mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -frame-pointer=all -mattr=+zfinx -O2 -code-model=medium
calling-conv-lp64e.29c622cf13.ll (mutant of calling-conv-lp64e.ll)callee_i128_split-mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -frame-pointer=all -mattr=+zfinx -O2 -code-model=medium
calling-conv-lp64e.29c622cf13.ll (mutant of calling-conv-lp64e.ll)callee_i128_on_stack-mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -frame-pointer=all -mattr=+zfinx -O2 -code-model=medium

Generated 2026-11-29 14:49 UTC.