fallback: translate: call llvm.experimental.constrained.lrint.i32.f32
| Run: | main-04ca53e65f-20261014-113325 |
| Kind: | fallback |
| Category: | translate: call llvm.experimental.constrained.lrint.i32.f32 |
| Occurrences: | 3 in 3 configs, 1 test files |
| Snippet from: | float-intrinsics-strict.ll @lrint_f32 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+f -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32f |
| Local check: | reproduces at 04ca53e65f |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind strictfp
define i32 @lrint_f32(float %a) #0 {
%1 = call i32 @llvm.experimental.constrained.lrint.i32.f32(float %a, metadata !"round.dynamic", metadata !"fpexcept.strict") #2
ret i32 %1
}
; Function Attrs: nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite)
declare i32 @llvm.experimental.constrained.lrint.i32.f32(float, metadata, metadata) #1
attributes #0 = { nounwind strictfp }
attributes #1 = { nocallback nofree nosync nounwind strictfp willreturn memory(inaccessiblemem: readwrite) }
attributes #2 = { strictfp }
Reproduce:
llc -mtriple=riscv32 -mattr=+f -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32f -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+f -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32f -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.experimental.constrained.lrint.i32.f32: ' %1 = call i32 @llvm.experimental.constrained.lrint.i32.f32(float %a, metadata !"round.dynamic", metadata !"fpexcept.strict") #2' (in function: lrint_f32)
warning: Instruction selection used fallback path for lrint_f32
Occurrences (3):
Generated 2026-10-15 08:05 UTC.