fallback: translate: call llvm.fshl.i32
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.fshl.i32 M |
| Occurrences: | 4 in 3 configs, 3 test files, 7 more counted only |
| Snippet from: | xcvbitmanip.e9eb9e77b0.ll (mutant of xcvbitmanip.ll) @test.llvm.fshl.reg via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zfinx,+zihintpause -O3 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define i32 @test.llvm.fshl.reg(i32 %a, i32 %b) {
%1 = call i32 @llvm.fshl.i32(i32 %a, i32 %a, i32 %b)
%C = icmp uge i32 %1, 0
store i1 %C, ptr @G, align 1
ret i32 %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zfinx,+zihintpause -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zfinx,+zihintpause -O3 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.fshl.i32: ' %1 = call i32 @llvm.fshl.i32(i32 %a, i32 %a, i32 %b)' (in function: test.llvm.fshl.reg)
warning: Instruction selection used fallback path for test.llvm.fshl.reg
Occurrences (4):
| Input | Function | Config |
|---|
| rv32zbb-zbkb.3a180b99a3.ll (mutant of rv32zbb-zbkb.ll) | rol_i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3 |
| rv64zbb-zbkb.7d07bcca76.ll (mutant of rv64zbb-zbkb.ll) | rol_i32_nosext | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zhinx -O0 |
| rv64zbb-zbkb.7d07bcca76.ll (mutant of rv64zbb-zbkb.ll) | rori_i32_fshl_nosext | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zhinx -O0 |
| xcvbitmanip.e9eb9e77b0.ll (mutant of xcvbitmanip.ll) | test.llvm.fshl.reg | -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zfinx,+zihintpause -O3 -code-model=small |
Generated 2026-11-29 14:49 UTC.