fallback: legalize: G_PHI <N x i8>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i8> M |
| Occurrences: | 5 in 5 configs, 4 test files, 96 more counted only |
| Snippet from: | fixed-vectors-masked-gather.abe61d5df8.ll (mutant of fixed-vectors-masked-gather.ll) @mgather_v4i8 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define <4 x i8> @mgather_v4i8(<4 x ptr> %ptrs, <4 x i1> %m, <4 x i8> %passthru) {
%LGV = load i1, ptr @G, align 1
br i1 %LGV, label %T, label %F
BB: ; preds = %T
%v = call <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr> align 1 %ptrs, <4 x i1> %m, <4 x i8> %passthru)
ret <4 x i8> %v
T: ; preds = %0
br label %BB
F: ; preds = %0
ret <4 x i8> %passthru
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <4 x i8> @llvm.masked.gather.v4i8.v4p0(<4 x ptr>, <4 x i1>, <4 x i8>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %42:_(<4 x i8>) = G_PHI %41:_(<4 x i8>), %bb.9, %34:_(<4 x i8>), %bb.8 (in function: mgather_v4i8)
warning: Instruction selection used fallback path for mgather_v4i8
Occurrences (5):
| Input | Function | Config |
|---|
| disable-tail-calls.93bed7e194.ll (mutant of disable-tail-calls.ll) | caller3 | -mtriple=riscv32-unknown-elf -disable-tail-calls -O2 -code-model=small -verify-machineinstrs |
| fixed-vectors-masked-gather.60ed66dac4.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_v2i8_sextload_v2i64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zcb -O3 |
| fixed-vectors-masked-gather.abe61d5df8.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_v4i8 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin -O0 |
| float-frem.3cbce4ca37.ll (mutant of float-frem.ll) | frem_f32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zihintpause -O0 |
| reserved-regs.da335e56a0.ll (mutant of reserved-regs.ll) | foo | -mtriple=riscv32 -verify-machineinstrs -mattr=+reserve-x30,+zvbb,+zfhmin -O0 |
Generated 2026-11-29 14:49 UTC.