fallback: legalize: G_INTRINSIC_LRINT <N x i32>,<N x bf16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_LRINT <N x i32>,<N x bf16> M |
| Occurrences: | 4 in 4 configs, 1 test files, 6 more counted only |
| Snippet from: | fixed-vectors-lrint.c2a7d6c5dd.ll (mutant of fixed-vectors-lrint.ll) @lrint_v8bf16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zvfh -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <8 x i32> @lrint_v8bf16(<8 x bfloat> %x) {
%a = call <8 x i32> @llvm.lrint.v8i32.v8bf16(<8 x bfloat> %x)
%B = mul <8 x i32> %a, splat (i32 1)
store <8 x i32> %B, ptr poison, align 32
ret <8 x i32> %a
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i32> @llvm.lrint.v8i32.v8bf16(<8 x bfloat>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zvfh -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zvfh -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %11:_(<8 x i32>) = G_INTRINSIC_LRINT %0:_(<8 x bf16>) (in function: lrint_v8bf16)
warning: Instruction selection used fallback path for lrint_v8bf16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-lrint.0c21c2c62e.ll (mutant of fixed-vectors-lrint.ll) | lrint_v4bf16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin -O0 |
| fixed-vectors-lrint.568d5de3fb.ll (mutant of fixed-vectors-lrint.ll) | lrint_v16bf16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zicond -O3 -code-model=small |
| fixed-vectors-lrint.8b16b933a2.ll (mutant of fixed-vectors-lrint.ll) | lrint_v8bf16 | -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_v8bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+f,+d,+zvfhmin,+zvfbfmin,+zvfh -O3 |
Generated 2026-11-29 14:49 UTC.