fallback: legalize: G_PHI <N x i64>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i64> M |
| Occurrences: | 4 in 4 configs, 4 test files, 110 more counted only |
| Snippet from: | fixed-vectors-masked-gather.abe61d5df8.ll (mutant of fixed-vectors-masked-gather.ll) @mgather_baseidx_zext_v8i32_v8i64 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.99 = external global <8 x i64>
define <8 x i64> @mgather_baseidx_zext_v8i32_v8i64(ptr %base, <8 x i32> %idxs, <8 x i1> %m, <8 x i64> %passthru) {
%eidxs = zext <8 x i32> %idxs to <8 x i64>
%B = lshr <8 x i64> %passthru, %eidxs
%ptrs = getelementptr inbounds i64, ptr %base, <8 x i64> %eidxs
%v = call <8 x i64> @llvm.masked.gather.v8i64.v8p0(<8 x ptr> align 8 %ptrs, <8 x i1> %m, <8 x i64> %passthru)
store <8 x i64> %B, ptr @G.99, align 64
ret <8 x i64> %v
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <8 x i64> @llvm.masked.gather.v8i64.v8p0(<8 x ptr>, <8 x i1>, <8 x i64>) #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: %80:_(<8 x i64>) = G_PHI %79:_(<8 x i64>), %bb.16, %72:_(<8 x i64>), %bb.15 (in function: mgather_baseidx_zext_v8i32_v8i64)
warning: Instruction selection used fallback path for mgather_baseidx_zext_v8i32_v8i64
Occurrences (4):
| Input | Function | Config |
|---|
| attributes.6ed8b91635.ll (mutant of attributes.ll) | atomic_load_i8_seq_cst | -mtriple=riscv64 -mattr=+zbb,+zfh,+v,+f,+a -O0 -verify-machineinstrs |
| fixed-vectors-masked-gather.abe61d5df8.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_baseidx_zext_v8i32_v8i64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin -O0 |
| scalar-stack-align.9abab495bf.ll (mutant of scalar-stack-align.ll) | scalar_stack_align16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zcb,+zbb -O0 |
| stores-of-loads-merging.f68f9e8d.cdaa9fe6.c63fd5d5.57046e0884.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.c63fd5d5.ll) | i8_i16_rotate | -mtriple=riscv64 -verify-machineinstrs -mattr=+b,+zvfh,+xtheadba,+zicsr,+zve32x -O0 |
Generated 2026-11-29 14:49 UTC.