Skip to content

Commit b95492f

Browse files
bail out for 16b fp vector types
1 parent 4b1f7e2 commit b95492f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,10 @@ static bool isSupportedArgumentType(Type *T, const RISCVSubtarget &Subtarget,
309309
return true;
310310
if (T->isPointerTy())
311311
return true;
312+
// TODO: support 16bit FPtypes.
312313
// TODO: Support fixed vector types.
313-
if (IsLowerArgs && T->isVectorTy() && T->isScalableTy() &&
314-
Subtarget.hasVInstructions())
314+
if (IsLowerArgs && T->isVectorTy() && Subtarget.hasVInstructions() &&
315+
!T->is16bitFPTy() && T->isScalableTy())
315316
return true;
316317
return false;
317318
}

0 commit comments

Comments
 (0)