fallback: translate: zext i128
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: zext i128 M |
| Occurrences: | 3 in 3 configs, 2 test files, 6 more counted only |
| Snippet from: | abdu.1b8e16c449.ll (mutant of abdu.ll) @abd_ext_i128 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
; Function Attrs: nounwind
define i128 @abd_ext_i128(i128 %a, i128 %b) #0 {
%aext = zext i128 %a to i256
%bext = zext i128 %b to i256
%sub = sub i256 %aext, %bext
%abs = call i256 @llvm.abs.i256(i256 %sub, i1 false)
%trunc = trunc i256 %abs to i128
%C = icmp ugt i128 %a, %trunc
store i1 %C, ptr @G, align 1
ret i128 %trunc
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i256 @llvm.abs.i256(i256, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: zext: ' %aext = zext i128 %a to i256' (in function: abd_ext_i128)
warning: Instruction selection used fallback path for abd_ext_i128
Occurrences (3):
| Input | Function | Config |
|---|
| abdu-neg.91f54d5fa9.ll (mutant of abdu-neg.ll) | abd_ext_i128 | -mtriple=riscv32 -mattr=+c,+zdinx -O1 -verify-machineinstrs |
| abdu-neg.cfaa47d139.ll (mutant of abdu-neg.ll) | abd_ext_i128_undef | -mtriple=riscv64 -mattr=+zbb,+zfinx,+xtheadba -O1 -verify-machineinstrs |
| abdu.1b8e16c449.ll (mutant of abdu.ll) | abd_ext_i128 | -mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.