fallback: translate: call llvm.vp.load.nxv8i8.p0
| Run: | main-d9924131a4-20261128-102057 |
| Kind: | fallback |
| Category: | translate: call llvm.vp.load.nxv8i8.p0 |
| Occurrences: | 14 in 5 configs, 2 test files |
| Snippet from: | codegenprepare-widening-mul.ll @spam via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @spam(ptr %arg, ptr %arg1, ptr %arg2, i64 %arg3, i32 %arg4, i32 %arg5) {
bb:
%and6 = and i32 %arg5, 7
%sub7 = sub nuw nsw i32 8, %and6
%and = and i32 %arg4, 7
%sub = sub nuw nsw i32 8, %and
%mul = mul nuw nsw i32 %sub, %and6
%mul8 = mul nuw nsw i32 %and, %and6
%mul9 = mul nuw nsw i32 %sub, %sub7
%mul10 = mul nuw nsw i32 %and, %sub7
%trunc = trunc i32 %mul9 to i16
%insertelement = insertelement <vscale x 8 x i16> poison, i16 %trunc, i64 0
%shufflevector = shufflevector <vscale x 8 x i16> %insertelement, <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
%trunc11 = trunc i32 %mul10 to i16
%insertelement12 = insertelement <vscale x 8 x i16> poison, i16 %trunc11, i64 0
%shufflevector13 = shufflevector <vscale x 8 x i16> %insertelement12, <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
%trunc14 = trunc i32 %mul to i16
%insertelement15 = insertelement <vscale x 8 x i16> poison, i16 %trunc14, i64 0
%shufflevector16 = shufflevector <vscale x 8 x i16> %insertelement15, <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
%trunc17 = trunc i32 %mul8 to i16
%insertelement18 = insertelement <vscale x 8 x i16> poison, i16 %trunc17, i64 0
%shufflevector19 = shufflevector <vscale x 8 x i16> %insertelement18, <vscale x 8 x i16> poison, <vscale x 8 x i32> zeroinitializer
br label %bb20
bb20: ; preds = %bb20, %bb
%phi = phi i64 [ %add45, %bb20 ], [ 0, %bb ]
%sub21 = sub i64 %arg3, %phi
%call = tail call i32 @llvm.experimental.get.vector.length.i64(i64 %sub21, i32 8, i1 true)
%getelementptr = getelementptr inbounds i8, ptr %arg1, i64 %phi
%call23 = tail call <vscale x 8 x i8> @llvm.vp.load.nxv8i8.p0(ptr align 1 %getelementptr, <vscale x 8 x i1> splat (i1 true), i32 %call)
%call24 = zext <vscale x 8 x i8> %call23 to <vscale x 8 x i16>
%call25 = mul <vscale x 8 x i16> %shufflevector, %call24
%add = add nuw nsw i64 %phi, 1
%getelementptr26 = getelementptr inbounds i8, ptr %arg1, i64 %add
%call27 = tail call <vscale x 8 x i8> @llvm.vp.load.nxv8i8.p0(ptr nonnull align 1 %getelementptr26, <vscale x 8 x i1> splat (i1 true), i32 %call)
%call28 = zext <vscale x 8 x i8> %call27 to <vscale x 8 x i16>
%call29 = mul <vscale x 8 x i16> %shufflevector13, %call28
%getelementptr30 = getelementptr inbounds i8, ptr %arg, i64 %phi
%call31 = tail call <vscale x 8 x i8> @llvm.vp.load.nxv8i8.p0(ptr align 1 %getelementptr30, <vscale x 8 x i1> splat (i1 true), i32 %call)
%call32 = zext <vscale x 8 x i8> %call31 to <vscale x 8 x i16>
%call33 = mul <vscale x 8 x i16> %shufflevector16, %call32
%getelementptr34 = getelementptr inbounds i8, ptr %arg, i64 %add
%call35 = tail call <vscale x 8 x i8> @llvm.vp.load.nxv8i8.p0(ptr nonnull align 1 %getelementptr34, <vscale x 8 x i1> splat (i1 true), i32 %call)
%call36 = zext <vscale x 8 x i8> %call35 to <vscale x 8 x i16>
%call37 = mul <vscale x 8 x i16> %shufflevector19, %call36
%call38 = add <vscale x 8 x i16> %call37, %call33
%call39 = add <vscale x 8 x i16> %call29, %call25
%call40 = add <vscale x 8 x i16> %call39, splat (i16 32)
%call41 = add <vscale x 8 x i16> %call40, %call38
%call42 = lshr <vscale x 8 x i16> %call41, splat (i16 6)
%call43 = trunc <vscale x 8 x i16> %call42 to <vscale x 8 x i8>
%getelementptr44 = getelementptr inbounds i8, ptr %arg2, i64 %phi
tail call void @llvm.vp.store.nxv8i8.p0(<vscale x 8 x i8> %call43, ptr align 1 %getelementptr44, <vscale x 8 x i1> splat (i1 true), i32 %call)
%zext = zext i32 %call to i64
%add45 = add i64 %phi, %zext
%icmp = icmp eq i64 %add45, %arg3
br i1 %icmp, label %bb46, label %bb20
bb46: ; preds = %bb20
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.experimental.get.vector.length.i64(i64, i32 immarg, i1 immarg) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <vscale x 8 x i8> @llvm.vp.load.nxv8i8.p0(ptr captures(none), <vscale x 8 x i1>, i32) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)
declare void @llvm.vp.store.nxv8i8.p0(<vscale x 8 x i8>, ptr captures(none), <vscale x 8 x i1>, i32) #2
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }
Reproduce:
llc -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.load.nxv8i8.p0: ' %call23 = tail call <vscale x 8 x i8> @llvm.vp.load.nxv8i8.p0(ptr align 1 %getelementptr, <vscale x 8 x i1> splat (i1 true), i32 %call)' (in function: spam)
warning: Instruction selection used fallback path for spam
Occurrences (14):
| Input | Function | Config |
|---|
| codegenprepare-widening-mul.ll | spam | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| codegenprepare-widening-mul.25df46d236.ll (mutant of codegenprepare-widening-mul.ll) | spam | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| codegenprepare-widening-mul.7cc33f68c0.ll (mutant of codegenprepare-widening-mul.ll) | spam | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| codegenprepare-widening-mul.af70ee8c35.ll (mutant of codegenprepare-widening-mul.ll) | spam | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| codegenprepare-widening-mul.bfa7301a0c.ll (mutant of codegenprepare-widening-mul.ll) | spam | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| codegenprepare-widening-mul.ceacfbb181.ll (mutant of codegenprepare-widening-mul.ll) | spam | -mtriple=riscv64 -mattr=+m,+v,+no-sink-splat-operands |
| vpload.34a36fb304.ll (mutant of vpload.ll) | vpload_nxv8i8 | -mtriple=riscv64 -mattr=+d,+zvfhmin,+zvfbfmin,+v -verify-machineinstrs |
| vpload.34a36fb304.ll (mutant of vpload.ll) | vpload_nxv8i8_allones_mask | -mtriple=riscv64 -mattr=+d,+zvfhmin,+zvfbfmin,+v -verify-machineinstrs |
| vpload.723248dd34.ll (mutant of vpload.ll) | vpload_nxv8i8 | -mtriple=riscv64 -mattr=+d,+zvfh,+zvfbfmin,+v -verify-machineinstrs |
| vpload.723248dd34.ll (mutant of vpload.ll) | vpload_nxv8i8_allones_mask | -mtriple=riscv64 -mattr=+d,+zvfh,+zvfbfmin,+v -verify-machineinstrs |
| vpload.73a9a9beca.ll (mutant of vpload.ll) | vpload_nxv8i8 | -mtriple=riscv32 -mattr=+d,+zvfh,+zvfbfmin,+v -verify-machineinstrs |
| vpload.73a9a9beca.ll (mutant of vpload.ll) | vpload_nxv8i8_allones_mask | -mtriple=riscv32 -mattr=+d,+zvfh,+zvfbfmin,+v -verify-machineinstrs |
| vpload.cc650f3ab1.ll (mutant of vpload.ll) | vpload_nxv8i8 | -mtriple=riscv32 -mattr=+d,+zvfhmin,+zvfbfmin,+v -verify-machineinstrs |
| vpload.cc650f3ab1.ll (mutant of vpload.ll) | vpload_nxv8i8_allones_mask | -mtriple=riscv32 -mattr=+d,+zvfhmin,+zvfbfmin,+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.