fallback: translate: call llvm.read_register.i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.read_register.i32 M |
| Occurrences: | 3 in 2 configs, 1 test files, 10 more counted only |
| Snippet from: | vlenb.127d4b3793.ll (mutant of vlenb.ll) @simple_cse via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zfinx -O1 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i32 @simple_cse() {
entry:
%v2 = call i32 @llvm.read_register.i32(metadata !0)
%B = lshr i32 %v2, 42
ret i32 %B
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare i32 @llvm.read_register.i32(metadata) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }
!0 = !{!"vlenb"}
Reproduce:
llc -mtriple=riscv32 -mattr=+zfinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.read_register.i32: ' %v2 = call i32 @llvm.read_register.i32(metadata !1)' (in function: simple_cse)
warning: Instruction selection used fallback path for simple_cse
Occurrences (3):
| Input | Function | Config |
|---|
| vlenb.127d4b3793.ll (mutant of vlenb.ll) | simple_cse | -mtriple=riscv32 -mattr=+zfinx -O1 -verify-machineinstrs |
| vlenb.f314122737.ll (mutant of vlenb.ll) | sink_to_use_branch | -mtriple=riscv32 -mattr=+zhinx,+zbb -O2 -verify-machineinstrs |
| vlenb.f314122737.ll (mutant of vlenb.ll) | sink_to_use_call | -mtriple=riscv32 -mattr=+zhinx,+zbb -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.