fallback: translate: call llvm.fshl.i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.fshl.i16 M |
| Occurrences: | 3 in 3 configs, 1 test files, 2 more counted only |
| Snippet from: | rotl-rotr.e40179eff4.ll (mutant of rotl-rotr.ll) @rotl_i16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i16 @rotl_i16(i16 %x, i16 %z) {
%f = call i16 @llvm.fshl.i16(i16 %x, i16 %x, i16 %z)
%B = ashr i8 -128, 42
store i8 %B, ptr poison, align 1
ret i16 %f
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.fshl.i16(i16, i16, i16) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.fshl.i16: ' %f = call i16 @llvm.fshl.i16(i16 %x, i16 %x, i16 %z)' (in function: rotl_i16)
warning: Instruction selection used fallback path for rotl_i16
Occurrences (3):
| Input | Function | Config |
|---|
| rotl-rotr.10ed78920e.ll (mutant of rotl-rotr.ll) | rotl_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicsr,+zdinx -O3 |
| rotl-rotr.e40179eff4.ll (mutant of rotl-rotr.ll) | rotl_i16 | -mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zdinx -O3 |
| rotl-rotr.e54e0fa084.ll (mutant of rotl-rotr.ll) | rotl_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zicsr,+zdinx -O0 |
Generated 2026-11-29 14:49 UTC.