fallback: translate: phi <vscale x N x i1>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: phi <vscale x N x i1> M |
| Occurrences: | 4 in 4 configs, 2 test files, 112 more counted only |
| Snippet from: | vector-interleave-store.ec3054b988.ll (mutant of vector-interleave-store.ll) @vector_interleave_store_nxv16i64_nxv8i64 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+f -O0 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i16
@G.1 = external global i1
define void @vector_interleave_store_nxv16i64_nxv8i64(<vscale x 8 x i64> %a, <vscale x 8 x i64> %b, ptr %p) {
%A = alloca i1, align 1
%L7 = load <vscale x 4 x i1>, ptr %A, align 1
store i1 false, ptr %A, align 1
%LGV = load i16, ptr @G, align 2
switch i16 %LGV, label %SW_D [
i16 10903, label %SW_C
i16 10175, label %SW_C1
i16 -3740, label %SW_C2
i16 -14065, label %SW_C3
i16 28246, label %SW_C4
]
BB: ; preds = %SW_C4, %SW_C3, %SW_C1, %SW_D
%res = call <vscale x 16 x i64> @llvm.vector.interleave2.nxv16i64(<vscale x 8 x i64> %a, <vscale x 8 x i64> %b)
store <vscale x 16 x i64> %res, ptr %p, align 128
ret void
SW_D: ; preds = %0
%1 = phi <vscale x 4 x i1> [ splat (i1 true), %0 ]
store <vscale x 4 x i1> %1, ptr %A, align 1
br label %BB
SW_C: ; preds = %0
ret void
SW_C1: ; preds = %SW_C1, %0
%LGV5 = load i1, ptr @G.1, align 1
br i1 %LGV5, label %BB, label %SW_C1
SW_C2: ; preds = %0
ret void
SW_C3: ; preds = %0
br label %BB
SW_C4: ; preds = %SW_C4, %0
%LGV6 = load i1, ptr @G.1, align 1
%L = load i1, ptr %A, align 1
br i1 %L, label %SW_C4, label %BB
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 16 x i64> @llvm.vector.interleave2.nxv16i64(<vscale x 8 x i64>, <vscale x 8 x i64>) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+f -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+f -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: phi: ' %1 = phi <vscale x 4 x i1> [ splat (i1 true), %0 ]' (in function: vector_interleave_store_nxv16i64_nxv8i64)
warning: Instruction selection used fallback path for vector_interleave_store_nxv16i64_nxv8i64
Occurrences (4):
| Input | Function | Config |
|---|
| riscv-codegenprepare-asm.3c9a46cc29.ll (mutant of riscv-codegenprepare-asm.ll) | widen_anyof_rdx_use_in_loop | -mtriple=riscv64 -mattr=+v,+zcb -O3 -verify-machineinstrs |
| riscv-codegenprepare-asm.86495891c1.ll (mutant of riscv-codegenprepare-asm.ll) | widen_anyof_rdx_use_in_loop | -mtriple=riscv64 -mattr=+v,+zbb,+zvkb -O0 -verify-machineinstrs |
| riscv-codegenprepare-asm.a379c25243.ll (mutant of riscv-codegenprepare-asm.ll) | widen_anyof_rdx | -mtriple=riscv64 -mattr=+v,+a -O0 -verify-machineinstrs |
| vector-interleave-store.ec3054b988.ll (mutant of vector-interleave-store.ll) | vector_interleave_store_nxv16i64_nxv8i64 | -mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+f -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.