@@ -6038,44 +6038,23 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
6038
6038
break ;
6039
6039
}
6040
6040
case Intrinsic::lrint:
6041
- case Intrinsic::llrint: {
6042
- Type *ValTy = Call.getArgOperand (0 )->getType ();
6043
- Type *ResultTy = Call.getType ();
6044
- Check (
6045
- ValTy->isFPOrFPVectorTy () && ResultTy->isIntOrIntVectorTy (),
6046
- " llvm.lrint, llvm.llrint: argument must be floating-point or vector "
6047
- " of floating-points, and result must be integer or vector of integers" ,
6048
- &Call);
6049
- Check (ValTy->isVectorTy () == ResultTy->isVectorTy (),
6050
- " llvm.lrint, llvm.llrint: argument and result disagree on vector use" ,
6051
- &Call);
6052
- if (ValTy->isVectorTy ()) {
6053
- Check (cast<VectorType>(ValTy)->getElementCount () ==
6054
- cast<VectorType>(ResultTy)->getElementCount (),
6055
- " llvm.lrint, llvm.llrint: argument must be same length as result" ,
6056
- &Call);
6057
- }
6058
- break ;
6059
- }
6041
+ case Intrinsic::llrint:
6060
6042
case Intrinsic::lround:
6061
6043
case Intrinsic::llround: {
6062
6044
Type *ValTy = Call.getArgOperand (0 )->getType ();
6063
6045
Type *ResultTy = Call.getType ();
6064
6046
auto *VTy = dyn_cast<VectorType>(ValTy);
6065
6047
auto *RTy = dyn_cast<VectorType>(ResultTy);
6066
- Check (
6067
- ValTy->isFPOrFPVectorTy () && ResultTy->isIntOrIntVectorTy (),
6068
- " llvm.lround, llvm.llround: argument must be floating-point or vector "
6069
- " of floating-points, and result must be integer or vector of integers" ,
6070
- &Call);
6071
- Check (
6072
- ValTy->isVectorTy () == ResultTy->isVectorTy (),
6073
- " llvm.lround, llvm.llround: argument and result disagree on vector use" ,
6074
- &Call);
6048
+ Check (ValTy->isFPOrFPVectorTy () && ResultTy->isIntOrIntVectorTy (),
6049
+ ExpectedName + " : argument must be floating-point or vector "
6050
+ " of floating-points, and result must be integer or "
6051
+ " vector of integers" ,
6052
+ &Call);
6053
+ Check (ValTy->isVectorTy () == ResultTy->isVectorTy (),
6054
+ ExpectedName + " : argument and result disagree on vector use" , &Call);
6075
6055
if (VTy) {
6076
6056
Check (VTy->getElementCount () == RTy->getElementCount (),
6077
- " llvm.lround, llvm.llround: argument must be same length as result" ,
6078
- &Call);
6057
+ ExpectedName + " : argument must be same length as result" , &Call);
6079
6058
}
6080
6059
break ;
6081
6060
}
0 commit comments