fallback: translate: zext <N x i64>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: zext <N x i64> M |
| Occurrences: | 3 in 3 configs, 2 test files, 6 more counted only |
| Snippet from: | clmulh.5a493a2471.ll (mutant of clmulh.ll) @commutative_clmulh_v2i64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+zicsr -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @commutative_clmulh_v2i64(<2 x i64> %x, <2 x i64> %y, ptr %p0, ptr %p1) #0 {
%x.ext = zext <2 x i64> %x to <2 x i128>
%B = or <2 x i64> %y, splat (i64 9223372036854775807)
%y.ext = zext <2 x i64> %y to <2 x i128>
%clmul_yx = call <2 x i128> @llvm.clmul.v2i128(<2 x i128> %y.ext, <2 x i128> %x.ext)
%clmul_yx_lshr = lshr <2 x i128> %clmul_yx, splat (i128 64)
%clmulh_yx = trunc <2 x i128> %clmul_yx_lshr to <2 x i64>
store <2 x i64> %B, ptr %p0, align 16
store <2 x i64> %clmulh_yx, ptr %p1, align 16
ret void
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i128> @llvm.clmul.v2i128(<2 x i128>, <2 x i128>) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+zicsr -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+zicsr -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: zext: ' %x.ext = zext <2 x i64> %x to <2 x i128>' (in function: commutative_clmulh_v2i64)
warning: Instruction selection used fallback path for commutative_clmulh_v2i64
Occurrences (3):
| Input | Function | Config |
|---|
| clmulh.5a493a2471.ll (mutant of clmulh.ll) | commutative_clmulh_v2i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+zicsr -O1 |
| clmulh.702cb6289c.ll (mutant of clmulh.ll) | commutative_clmulh_v2i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 |
| clmulr.7baf9c51eb.ll (mutant of clmulr.ll) | commutative_clmulr_v2i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zbs,+zdinx -O1 |
Generated 2026-11-29 14:49 UTC.