fallback: translate: zext i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: zext i64 M
Occurrences:3 in 3 configs, 3 test files, 7 more counted only
Snippet from:avgflooru.86cf97eb0d.ll (mutant of avgflooru.ll) @test_ext_i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i64

; Function Attrs: nounwind
define i64 @test_ext_i64(i64 %a0, i64 %a1) #0 {
  %x0 = zext i64 %a0 to i128
  %x1 = zext i64 %a1 to i128
  %sum = add i128 %x0, %x1
  %B = xor i64 %a0, %a1
  %shift = lshr i128 %sum, 1
  %res = trunc i128 %shift to i64
  store i64 %B, ptr @G, align 4
  ret i64 %res
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
abdu.02e2f086ca.ll (mutant of abdu.ll)abd_ext_i64-mtriple=riscv32 -mattr=+zhinx -O3 -code-model=medium -verify-machineinstrs
avgceilu.85c020a785.ll (mutant of avgceilu.ll)test_ext_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2
avgflooru.86cf97eb0d.ll (mutant of avgflooru.ll)test_ext_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3

Generated 2026-11-29 14:49 UTC.