fallback: legalize: G_INTRINSIC_LRINT <N x i32>,<N x f64>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_LRINT <N x i32>,<N x f64> M |
| Occurrences: | 3 in 2 configs, 2 test files, 16 more counted only |
| Snippet from: | fixed-vectors-lrint.73fa0f355e.ll (mutant of fixed-vectors-lrint.ll) @lrint_v8f64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -code-model=small |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.5 = external global i128
define <8 x i32> @lrint_v8f64(<8 x double> %x) {
%LGV = load i128, ptr @G.5, align 4
%a = call <8 x i32> @llvm.lrint.v8i32.v8f64(<8 x double> %x)
switch i128 %LGV, label %SW_D [
i128 10818498198667952227, label %SW_C
]
BB: ; preds = %SW_C, %SW_D
ret <8 x i32> %a
SW_D: ; preds = %0
br label %BB
SW_C: ; preds = %0
br label %BB
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i32> @llvm.lrint.v8i32.v8f64(<8 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 -code-model=small -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 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %10:_(<8 x i32>) = G_INTRINSIC_LRINT %0:_(<8 x f64>) (in function: lrint_v8f64)
warning: Instruction selection used fallback path for lrint_v8f64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-lrint-vp.31f18678fb.ll (mutant of fixed-vectors-lrint-vp.ll) | lrint_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O2 |
| fixed-vectors-lrint-vp.31f18678fb.ll (mutant of fixed-vectors-lrint-vp.ll) | lrint_v8f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d -O2 |
| fixed-vectors-lrint.73fa0f355e.ll (mutant of fixed-vectors-lrint.ll) | lrint_v8f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -code-model=small |
Generated 2026-11-29 14:49 UTC.