@@ -2425,8 +2425,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
2425
2425
case CK_IntegralToFloating: {
2426
2426
if (E->getType ()->isVectorType () && DestTy->isVectorType ()) {
2427
2427
// TODO: Support constrained FP intrinsics.
2428
- assert (!Builder.getIsFPConstrained () &&
2429
- " FP Constrained vector casts not supported yet." );
2430
2428
QualType SrcElTy = E->getType ()->castAs <VectorType>()->getElementType ();
2431
2429
if (SrcElTy->isSignedIntegerOrEnumerationType ())
2432
2430
return Builder.CreateSIToFP (Visit (E), ConvertType (DestTy), " conv" );
@@ -2439,8 +2437,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
2439
2437
case CK_FloatingToIntegral: {
2440
2438
if (E->getType ()->isVectorType () && DestTy->isVectorType ()) {
2441
2439
// TODO: Support constrained FP intrinsics.
2442
- assert (!Builder.getIsFPConstrained () &&
2443
- " FP Constrained vector casts not supported yet." );
2444
2440
QualType DstElTy = DestTy->castAs <VectorType>()->getElementType ();
2445
2441
if (DstElTy->isSignedIntegerOrEnumerationType ())
2446
2442
return Builder.CreateFPToSI (Visit (E), ConvertType (DestTy), " conv" );
@@ -2453,8 +2449,6 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
2453
2449
case CK_FloatingCast: {
2454
2450
if (E->getType ()->isVectorType () && DestTy->isVectorType ()) {
2455
2451
// TODO: Support constrained FP intrinsics.
2456
- assert (!Builder.getIsFPConstrained () &&
2457
- " FP Constrained vector casts not supported yet." );
2458
2452
QualType SrcElTy = E->getType ()->castAs <VectorType>()->getElementType ();
2459
2453
QualType DstElTy = DestTy->castAs <VectorType>()->getElementType ();
2460
2454
if (DstElTy->castAs <BuiltinType>()->getKind () <
0 commit comments