fallback: legalize: G_INTRINSIC_LRINT <N x i32>,<N x f16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_LRINT <N x i32>,<N x f16> M |
| Occurrences: | 4 in 3 configs, 1 test files, 6 more counted only |
| Snippet from: | fixed-vectors-lrint.d89205616c.ll (mutant of fixed-vectors-lrint.ll) @lrint_v8f16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+zvfhmin,+zvfbfmin -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i16
define <8 x i32> @lrint_v8f16(<8 x half> %x) {
%LGV = load i16, ptr @G.2, align 2
%a = call <8 x i32> @llvm.lrint.v8i32.v8f16(<8 x half> %x)
%C = icmp ult i16 256, %LGV
store i1 %C, ptr poison, align 1
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,+zvfhmin,+zvfbfmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+zvfhmin,+zvfbfmin -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(<8 x i32>) = G_INTRINSIC_LRINT %0:_(<8 x f16>) (in function: lrint_v8f16)
warning: Instruction selection used fallback path for lrint_v8f16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-lrint.4949e5374f.ll (mutant of fixed-vectors-lrint.ll) | lrint_v3f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zvbb -O1 |
| fixed-vectors-lrint.73fa0f355e.ll (mutant of fixed-vectors-lrint.ll) | lrint_v4f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -code-model=small |
| fixed-vectors-lrint.73fa0f355e.ll (mutant of fixed-vectors-lrint.ll) | lrint_v8f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 -code-model=small |
| fixed-vectors-lrint.d89205616c.ll (mutant of fixed-vectors-lrint.ll) | lrint_v8f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+zvfhmin,+zvfbfmin -O0 |
Generated 2026-11-29 14:49 UTC.