fallback: translate: freeze i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: freeze i16 M |
| Occurrences: | 4 in 4 configs, 3 test files, 4 more counted only |
| Snippet from: | ctz_zero_return_test.861e681972.ll (mutant of ctz_zero_return_test.ll) @test_ctlz_select_i16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i16 @test_ctlz_select_i16(i16 %0) {
%2 = call i16 @llvm.cttz.i16(i16 %0, i1 false)
%C = icmp sgt i16 %0, 0
%B = urem i16 %2, %0
%3 = select i1 %C, i16 0, i16 %B
ret i16 %3
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.cttz.i16(i16, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: freeze: ' %.fr = freeze i16 %0' (in function: test_ctlz_select_i16)
warning: Instruction selection used fallback path for test_ctlz_select_i16
Occurrences (4):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.ad865bfac1.ll (mutant of ctlz-cttz-ctpop.ll) | test_ctlz_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+c,+zdinx -O3 |
| ctz_zero_return_test.861e681972.ll (mutant of ctz_zero_return_test.ll) | test_ctlz_select_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| ctz_zero_return_test.bad0516f7f.ll (mutant of ctz_zero_return_test.ll) | test_ctlz_select_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1 |
| rv32xtheadbb.8d2acde9fc.ll (mutant of rv32xtheadbb.ll) | cttz_i16 | -mtriple=riscv32 -mattr=+xtheadbb,+zfinx,+zbkb -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.