fallback: legalize: G_INTRINSIC_LRINT <N x i32>,<N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_LRINT <N x i32>,<N x f64> M |
| Occurrences: | 3 in 3 configs, 2 test files, 37 more counted only |
| Snippet from: | fixed-vectors-lrint.d3685a0da7.ll (mutant of fixed-vectors-lrint.ll) @lrint_v4f64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global <4 x double>
define <4 x i32> @lrint_v4f64(<4 x double> %x) {
%B = fdiv <4 x double> %x, %x
%a = call <4 x i32> @llvm.lrint.v4i32.v4f64(<4 x double> %x)
store <4 x double> %B, ptr @G, align 32
ret <4 x i32> %a
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.lrint.v4i32.v4f64(<4 x double>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x i32>) = G_INTRINSIC_LRINT %0:_(<4 x f64>) (in function: lrint_v4f64)
warning: Instruction selection used fallback path for lrint_v4f64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-lrint-vp.f588f8d0e7.ll (mutant of fixed-vectors-lrint-vp.ll) | lrint_v2f64 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d -O2 |
| fixed-vectors-lrint.7b1237be58.ll (mutant of fixed-vectors-lrint.ll) | lrint_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+c -O1 -code-model=small |
| fixed-vectors-lrint.d3685a0da7.ll (mutant of fixed-vectors-lrint.ll) | lrint_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 |
Generated 2026-11-29 14:49 UTC.