fallback: translate: zext i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: zext i64 M
Occurrences:5 in 5 configs, 5 test files, 4 more counted only
Snippet from:avgflooru.4a834aaa03.ll (mutant of avgflooru.ll) @test_ext_i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+m -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i128

; 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
  %shift = lshr i128 %sum, 1
  %res = trunc i128 %shift to i64
  %B = or i128 %x1, %x1
  store i128 %B, ptr @G.3, align 4
  ret i64 %res
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+m -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+m -O2 -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 (5):

InputFunctionConfig
avgceilu.87ce836c0e.ll (mutant of avgceilu.ll)test_ext_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0
avgflooru.4a834aaa03.ll (mutant of avgflooru.ll)test_ext_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+m -O2
clmul.25b27237d3.ll (mutant of clmul.ll)clmul_i128_zext-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zcb,+zdinx -O1
mul.793269a53c.ll (mutant of mul.ll)mulhsu_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O1
rv64zbc-zbkc-intrinsic.b056d9331b.ll (mutant of rv64zbc-zbkc-intrinsic.ll)llvm_clmulh_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1

Generated 2026-11-29 14:49 UTC.