fallback: translate: call llvm.bswap.i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.bswap.i32 M |
| Occurrences: | 5 in 5 configs, 3 test files, 14 more counted only |
| Snippet from: | bswap-shift.deb43cf434.ll (mutant of bswap-shift.ll) @test_bswap_shli_24_bswap_i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx,+zicsr -O1 -code-model=small |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i32 @test_bswap_shli_24_bswap_i32(i32 %a) #0 {
%1 = call i32 @llvm.bswap.i32(i32 %a)
%B = shl i32 %1, 65536
%2 = call i32 @llvm.bswap.i32(i32 %B)
ret i32 %2
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.bswap.i32(i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx,+zicsr -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx,+zicsr -O1 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.bswap.i32: ' %1 = call i32 @llvm.bswap.i32(i32 %a)' (in function: test_bswap_shli_24_bswap_i32)
warning: Instruction selection used fallback path for test_bswap_shli_24_bswap_i32
Occurrences (5):
| Input | Function | Config |
|---|
| bswap-bitreverse.6f3b22e762.ll (mutant of bswap-bitreverse.ll) | test_bswap_bitreverse_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zvkb -O2 |
| bswap-bitreverse.a52eedb374.ll (mutant of bswap-bitreverse.ll) | test_bswap_bitreverse_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0 |
| bswap-shift.deb43cf434.ll (mutant of bswap-shift.ll) | test_bswap_shli_24_bswap_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx,+zicsr -O1 -code-model=small |
| bswap-shift.e9c6dacaf0.ll (mutant of bswap-shift.ll) | test_bswap_shli_8_bswap_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+m,+zdinx -O3 |
| rv64zbb.63a471d4f0.ll (mutant of rv64zbb.ll) | bswap_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zcb,+zhinx -O2 |
Generated 2026-11-29 14:49 UTC.