mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed LLVM cast intrinsic for vectors
This commit is contained in:
parent
b5ddc1c24b
commit
202d21734c
1 changed files with 4 additions and 2 deletions
|
@ -3657,10 +3657,12 @@ void BfIRCodeGen::HandleNextCmd()
|
||||||
SetResult(curId, mIRBuilder->CreateAlignedLoad(castedRes, llvm::MaybeAlign(1)));
|
SetResult(curId, mIRBuilder->CreateAlignedLoad(castedRes, llvm::MaybeAlign(1)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if ((arg0Type->isVectorTy()) && (intrinsicData->mReturnType->isVectorTy()))
|
||||||
{
|
{
|
||||||
FatalError("Expected address");
|
SetResult(curId, mIRBuilder->CreateBitCast(args[0], intrinsicData->mReturnType));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
FatalError("Invalid cast intrinsic values");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BfIRIntrinsic_VAArg:
|
case BfIRIntrinsic_VAArg:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue