fallback: translate: call llvm.bswap.i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.bswap.i16 M |
| Occurrences: | 4 in 3 configs, 2 test files, 3 more counted only |
| Snippet from: | bswap-shift.d9676d859f.ll (mutant of bswap-shift.ll) @test_bswap_srli_8_bswap_i16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i16 @test_bswap_srli_8_bswap_i16(i16 %a) #0 {
%1 = call i16 @llvm.bswap.i16(i16 %a)
%2 = lshr i16 8, %1
%3 = call i16 @llvm.bswap.i16(i16 %2)
ret i16 %3
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.bswap.i16(i16) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.bswap.i16: ' %1 = call i16 @llvm.bswap.i16(i16 %a)' (in function: test_bswap_srli_8_bswap_i16)
warning: Instruction selection used fallback path for test_bswap_srli_8_bswap_i16
Occurrences (4):
| Input | Function | Config |
|---|
| bswap-bitreverse.27d47dcd9c.ll (mutant of bswap-bitreverse.ll) | test_bswap_bitreverse_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O3 |
| bswap-bitreverse.83407fefb0.ll (mutant of bswap-bitreverse.ll) | test_bswap_bitreverse_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 |
| bswap-shift.d9676d859f.ll (mutant of bswap-shift.ll) | test_bswap_srli_8_bswap_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 |
| bswap-shift.d9676d859f.ll (mutant of bswap-shift.ll) | test_bswap_shli_8_bswap_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 |
Generated 2026-11-29 14:49 UTC.