fallback: translate: call llvm.bswap.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.bswap.i64 M |
| Occurrences: | 3 in 3 configs, 1 test files, 7 more counted only |
| Snippet from: | bswap-bitreverse.b0294ae5f3.ll (mutant of bswap-bitreverse.ll) @test_bswap_i64 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.3 = external global i64
; Function Attrs: nounwind
define i64 @test_bswap_i64(i64 %a) #0 {
%tmp = call i64 @llvm.bswap.i64(i64 %a)
%B = xor i64 %a, %a
store i64 %B, ptr @G.3, align 4
ret i64 %tmp
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.bswap.i64(i64) #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.bswap.i64: ' %tmp = call i64 @llvm.bswap.i64(i64 %a)' (in function: test_bswap_i64)
warning: Instruction selection used fallback path for test_bswap_i64
Occurrences (3):
| Input | Function | Config |
|---|
| bswap-bitreverse.5419cd2d6d.ll (mutant of bswap-bitreverse.ll) | test_bswap_bitreverse_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zcb,+zhinx -O0 -code-model=small |
| bswap-bitreverse.a9af59f790.ll (mutant of bswap-bitreverse.ll) | test_bswap_i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O3 |
| bswap-bitreverse.b0294ae5f3.ll (mutant of bswap-bitreverse.ll) | test_bswap_i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+experimental-p,+zdinx,+zcb -O1 |
Generated 2026-11-29 14:49 UTC.