Add missing cast
This commit is contained in:
parent
cce27226d0
commit
bf322c8916
1 changed files with 12 additions and 3 deletions
|
@ -284,7 +284,16 @@ namespace ChocolArm64.Instructions
|
||||||
switch (size)
|
switch (size)
|
||||||
{
|
{
|
||||||
case 2: context.EmitCall(typeof(Sse), nameof(Sse.StoreScalar)); break;
|
case 2: context.EmitCall(typeof(Sse), nameof(Sse.StoreScalar)); break;
|
||||||
case 3: context.EmitCall(typeof(Sse2), nameof(Sse2.StoreScalar)); break;
|
|
||||||
|
case 3:
|
||||||
|
{
|
||||||
|
VectorHelper.EmitCall(context, nameof(VectorHelper.VectorSingleToDouble));
|
||||||
|
|
||||||
|
context.EmitCall(typeof(Sse2), nameof(Sse2.StoreScalar));
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 4: context.EmitCall(typeof(Sse), nameof(Sse.StoreAligned)); break;
|
case 4: context.EmitCall(typeof(Sse), nameof(Sse.StoreAligned)); break;
|
||||||
|
|
||||||
default: throw new InvalidOperationException($"Invalid vector store size of {1 << size} bytes.");
|
default: throw new InvalidOperationException($"Invalid vector store size of {1 << size} bytes.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue