A64: Implement FABD's scalar single/double precision variant
This commit is contained in:
parent
d898d1779d
commit
9e75d08860
2 changed files with 13 additions and 1 deletions
|
@ -351,7 +351,7 @@ INST(DUP_elt_1, "DUP (element)", "01011
|
|||
//INST(FACGE_1, "FACGE", "01111110010mmmmm001011nnnnnddddd")
|
||||
//INST(FACGE_2, "FACGE", "011111100z1mmmmm111011nnnnnddddd")
|
||||
//INST(FABD_1, "FABD", "01111110110mmmmm000101nnnnnddddd")
|
||||
//INST(FABD_2, "FABD", "011111101z1mmmmm110101nnnnnddddd")
|
||||
INST(FABD_2, "FABD", "011111101z1mmmmm110101nnnnnddddd")
|
||||
//INST(FCMGT_reg_1, "FCMGT (register)", "01111110110mmmmm001001nnnnnddddd")
|
||||
//INST(FCMGT_reg_2, "FCMGT (register)", "011111101z1mmmmm111001nnnnnddddd")
|
||||
//INST(FACGT_1, "FACGT", "01111110110mmmmm001011nnnnnddddd")
|
||||
|
|
|
@ -130,6 +130,18 @@ bool TranslatorVisitor::CMTST_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::FABD_2(bool sz, Vec Vm, Vec Vn, Vec Vd) {
|
||||
const size_t esize = sz ? 64 : 32;
|
||||
|
||||
const IR::U128 operand1 = V(esize, Vn);
|
||||
const IR::U128 operand2 = V(esize, Vm);
|
||||
const IR::U128 difference = ir.FPVectorAbsoluteDifference(esize, operand1, operand2);
|
||||
const IR::U128 result = ir.VectorZeroUpper(difference);
|
||||
|
||||
V(128, Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::SSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
||||
if (size != 0b11) {
|
||||
return ReservedValue();
|
||||
|
|
Loading…
Reference in a new issue