fallback: translate: call llvm.bitreverse.i8~

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.bitreverse.i8~ M
Occurrences:3 in 3 configs, 2 test files, 18 more counted only
Snippet from:bswap-bitreverse.b0294ae5f3.ll (mutant of bswap-bitreverse.ll) @test_bitreverse_i7 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+experimental-p,+zdinx,+zcb -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global i1

; Function Attrs: nounwind
define i7 @test_bitreverse_i7(i7 %a) #0 {
  %tmp = call i7 @llvm.bitreverse.i7(i7 %a)
  %C = fcmp une half 0.000000e+00, 4.200000e+01
  store i1 %C, ptr @G.4, align 1
  ret i7 %tmp
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i7 @llvm.bitreverse.i7(i7) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+experimental-p,+zdinx,+zcb -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+experimental-p,+zdinx,+zcb -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.bitreverse.i7: '  %tmp = call i7 @llvm.bitreverse.i7(i7 %a)' (in function: test_bitreverse_i7)
warning: Instruction selection used fallback path for test_bitreverse_i7

Occurrences (3):

InputFunctionConfig
bswap-bitreverse.b0294ae5f3.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i7-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+experimental-p,+zdinx,+zcb -O1
clmulh.54a131c0e6.ll (mutant of clmulh.ll)clmulh_i4_bitreverse-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zhinx -O1
clmulh.c24e19f899.ll (mutant of clmulh.ll)clmulh_i4_bitreverse-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zhinx -O0

Generated 2026-11-29 14:49 UTC.