fallback: translate: call llvm.bswap.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.bswap.i64 M |
| Occurrences: | 5 in 5 configs, 3 test files, 8 more counted only |
| Snippet from: | rv32xtheadbb.3c623ec4b1.ll (mutant of rv32xtheadbb.ll) @bswap_i64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+b,+zdinx -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i64 @bswap_i64(i64 %a) {
%1 = call i64 @llvm.bswap.i64(i64 %a)
%B = fdiv float 1.401300e-45, 1.000000e+00
store float %B, ptr poison, align 4
ret i64 %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.bswap.i64(i64) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+b,+zdinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+b,+zdinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.bswap.i64: ' %1 = call i64 @llvm.bswap.i64(i64 %a)' (in function: bswap_i64)
warning: Instruction selection used fallback path for bswap_i64
Occurrences (5):
| Input | Function | Config |
|---|
| bswap-bitreverse.3b7d4a4385.ll (mutant of bswap-bitreverse.ll) | test_bswap_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zvbb,+zfinx -O3 |
| bswap-bitreverse.cdb05c35d0.ll (mutant of bswap-bitreverse.ll) | test_bswap_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2 |
| bswap-shift.46b263f5ce.ll (mutant of bswap-shift.ll) | test_bswap_srli_48_bswap_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O0 |
| rv32xtheadbb.07ff582db8.ll (mutant of rv32xtheadbb.ll) | bswap_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zba,+zhinx -O2 |
| rv32xtheadbb.3c623ec4b1.ll (mutant of rv32xtheadbb.ll) | bswap_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+b,+zdinx -O2 |
Generated 2026-11-29 14:49 UTC.