fallback: translate: freeze i32
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: freeze i32 M |
| Occurrences: | 4 in 4 configs, 4 test files, 6 more counted only |
| Snippet from: | xcvbitmanip.5484b64797.ll (mutant of xcvbitmanip.ll) @test.ctlz.zero.defined via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zhinx -O3 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i32
define i32 @test.ctlz.zero.defined(i32 %a) {
%1 = call i32 @llvm.ctlz.i32(i32 %a, i1 false)
%B = or i32 %1, %1
store i32 %B, ptr @G.1, align 4
ret i32 %1
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zhinx -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zhinx -O3 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: freeze: ' %a.fr = freeze i32 %a' (in function: test.ctlz.zero.defined)
warning: Instruction selection used fallback path for test.ctlz.zero.defined
Occurrences (4):
| Input | Function | Config |
|---|
| ctz_zero_return_test.9bb383f9b7.ll (mutant of ctz_zero_return_test.ll) | ctz3 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2 |
| rv32xtheadbb.07ff582db8.ll (mutant of rv32xtheadbb.ll) | ctlz_i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zba,+zhinx -O2 |
| rv64xtheadbb.06647407e4.ll (mutant of rv64xtheadbb.ll) | cttz_i32 | -mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs |
| xcvbitmanip.5484b64797.ll (mutant of xcvbitmanip.ll) | test.ctlz.zero.defined | -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zhinx -O3 -code-model=small |
Generated 2026-11-29 14:49 UTC.