Add BIC/ORR Vd.T, #imm
fast path (#2279)
* Add fast path for BIC Vd.T, #imm * Add fast path for ORR Vd.T, #imm * Set PTC version * Fixup Exception to InvalidOperationException
This commit is contained in:
parent
49745cfa37
commit
0181068016
3 changed files with 65 additions and 5 deletions
|
@ -190,6 +190,15 @@ namespace ARMeilleure.Instructions
|
|||
return X86GetAllElements(context, BitConverter.DoubleToInt64Bits(value));
|
||||
}
|
||||
|
||||
public static Operand X86GetAllElements(ArmEmitterContext context, short value)
|
||||
{
|
||||
ulong value1 = (ushort)value;
|
||||
ulong value2 = value1 << 16 | value1;
|
||||
ulong value4 = value2 << 32 | value2;
|
||||
|
||||
return X86GetAllElements(context, (long)value4);
|
||||
}
|
||||
|
||||
public static Operand X86GetAllElements(ArmEmitterContext context, int value)
|
||||
{
|
||||
Operand vector = context.VectorCreateScalar(Const(value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue