fallback: translate: phi <vscale x N x i8>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: phi <vscale x N x i8>
Occurrences:29 in 3 configs, 2 test files
Snippet from:vxrm-insert.ll @test5 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <vscale x 1 x i8> @test5(<vscale x 1 x i8> %0, <vscale x 1 x i8> %1, <vscale x 1 x i8> %2, i32 %3, i1 %cond) #0 {
entry:
  %a = call <vscale x 1 x i8> @llvm.riscv.vaadd.nxv1i8.nxv1i8.i32(<vscale x 1 x i8> poison, <vscale x 1 x i8> %0, <vscale x 1 x i8> %1, i32 0, i32 %3)
  br i1 %cond, label %condblock, label %mergeblock

condblock:                                        ; preds = %entry
  %b = call <vscale x 1 x i8> @llvm.riscv.vaadd.nxv1i8.nxv1i8.i32(<vscale x 1 x i8> poison, <vscale x 1 x i8> %a, <vscale x 1 x i8> %2, i32 0, i32 %3)
  br label %mergeblock

mergeblock:                                       ; preds = %condblock, %entry
  %c = phi <vscale x 1 x i8> [ %a, %entry ], [ %b, %condblock ]
  ret <vscale x 1 x i8> %c
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 1 x i8> @llvm.riscv.vaadd.nxv1i8.nxv1i8.i32(<vscale x 1 x i8>, <vscale x 1 x i8>, <vscale x 1 x i8>, i32 immarg, i32) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: phi: '  %c = phi <vscale x 1 x i8> [ %a, %entry ], [ %b, %condblock ]' (in function: test5)
warning: Instruction selection used fallback path for test5

Occurrences (29) (first 15):

InputFunctionConfig
riscv-codegenprepare-asm.llwiden_anyof_rdx-mtriple=riscv64 -mattr=+v
riscv-codegenprepare-asm.llwiden_anyof_rdx_use_in_loop-mtriple=riscv64 -mattr=+v
vxrm-insert.lltest5-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest6-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest7-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest8-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest9-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest12-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest13-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest5-mtriple=riscv64 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest6-mtriple=riscv64 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest7-mtriple=riscv64 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest8-mtriple=riscv64 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest9-mtriple=riscv64 -mattr=+v -verify-machineinstrs
vxrm-insert.lltest12-mtriple=riscv64 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.