fallback: legalize: G_INTRINSIC_LRINT <N x i32>,<N x f16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_LRINT <N x i32>,<N x f16> M |
| Occurrences: | 4 in 3 configs, 1 test files, 19 more counted only |
| Snippet from: | fixed-vectors-lrint.d3685a0da7.ll (mutant of fixed-vectors-lrint.ll) @lrint_v3f16 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:
define <3 x i32> @lrint_v3f16(<3 x half> %x) {
%A = alloca float, align 4
store float poison, ptr %A, align 4
%E = extractelement <4 x float> splat (float 1.000000e+00), i64 0
%a = call <3 x i32> @llvm.lrint.v3i32.v3f16(<3 x half> %x)
store float %E, ptr %A, align 4
ret <3 x i32> %a
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <3 x i32> @llvm.lrint.v3i32.v3f16(<3 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 -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: %9:_(<3 x i32>) = G_INTRINSIC_LRINT %0:_(<3 x f16>) (in function: lrint_v3f16)
warning: Instruction selection used fallback path for lrint_v3f16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-lrint.7b1237be58.ll (mutant of fixed-vectors-lrint.ll) | lrint_v2f16 | -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_v3f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O2 |
| fixed-vectors-lrint.e6996c743a.ll (mutant of fixed-vectors-lrint.ll) | lrint_v2f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin -O0 -code-model=small |
| fixed-vectors-lrint.e6996c743a.ll (mutant of fixed-vectors-lrint.ll) | lrint_v4f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.