fallback: translate: call llvm.bitreverse.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.bitreverse.i32 M |
| Occurrences: | 3 in 3 configs, 2 test files, 5 more counted only |
| Snippet from: | bswap-bitreverse.2b7c8a28f4.ll (mutant of bswap-bitreverse.ll) @test_bitreverse_i32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zba -O1 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i8
; Function Attrs: nounwind
define i32 @test_bitreverse_i32(i32 %a) #0 {
%tmp = call i32 @llvm.bitreverse.i32(i32 %a)
%B = mul i8 127, 16
store i8 %B, ptr @G.2, align 1
ret i32 %tmp
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.bitreverse.i32(i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zba -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zba -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.bitreverse.i32: ' %tmp = call i32 @llvm.bitreverse.i32(i32 %a)' (in function: test_bitreverse_i32)
warning: Instruction selection used fallback path for test_bitreverse_i32
Occurrences (3):
| Input | Function | Config |
|---|
| bitreverse-shift.b9a9775eda.ll (mutant of bitreverse-shift.ll) | test_bitreverse_srli_bitreverse_i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zfinx,+zvkb -O1 |
| bswap-bitreverse.23b88dcf86.ll (mutant of bswap-bitreverse.ll) | test_bitreverse_bswap_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zhinx -O1 |
| bswap-bitreverse.2b7c8a28f4.ll (mutant of bswap-bitreverse.ll) | test_bitreverse_i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zba -O1 |
Generated 2026-11-29 14:49 UTC.