fallback: legalize: G_INTRINSIC_LRINT <N x i32>,<N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_LRINT <N x i32>,<N x f16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 2 more counted only |
| Snippet from: | fixed-vectors-lrint.ed15074a9b.ll (mutant of fixed-vectors-lrint.ll) @lrint_v8f16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global <8 x half>
define <8 x i32> @lrint_v8f16(<8 x half> %x) {
%a = call <8 x i32> @llvm.lrint.v8i32.v8f16(<8 x half> %x)
%S = shufflevector <8 x half> %x, <8 x half> splat (half +inf), <8 x i32> poison
store <8 x half> %S, ptr @G.4, align 16
ret <8 x i32> %a
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i32> @llvm.lrint.v8i32.v8f16(<8 x half>) #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 -O1 -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 -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %3:_(<8 x i32>) = G_INTRINSIC_LRINT %0:_(<8 x f16>) (in function: lrint_v8f16)
warning: Instruction selection used fallback path for lrint_v8f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-lrint.8b16b933a2.ll (mutant of fixed-vectors-lrint.ll) | lrint_v3f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+c -O1 |
| fixed-vectors-lrint.c2a7d6c5dd.ll (mutant of fixed-vectors-lrint.ll) | lrint_v8f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zvfh -O3 |
| fixed-vectors-lrint.ed15074a9b.ll (mutant of fixed-vectors-lrint.ll) | lrint_v8f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O1 |
Generated 2026-11-29 14:49 UTC.