A64: Implement half-precision variant of FRSQRTE's scalar variant
This commit is contained in:
parent
037acb17b9
commit
77c84bcf9b
2 changed files with 11 additions and 1 deletions
|
@ -438,7 +438,7 @@ INST(FCMLE_2, "FCMLE (zero)", "01111
|
||||||
INST(FCVTPU_2, "FCVTPU (vector)", "011111101z100001101010nnnnnddddd")
|
INST(FCVTPU_2, "FCVTPU (vector)", "011111101z100001101010nnnnnddddd")
|
||||||
//INST(FCVTZU_int_1, "FCVTZU (vector, integer)", "0111111011111001101110nnnnnddddd")
|
//INST(FCVTZU_int_1, "FCVTZU (vector, integer)", "0111111011111001101110nnnnnddddd")
|
||||||
INST(FCVTZU_int_2, "FCVTZU (vector, integer)", "011111101z100001101110nnnnnddddd")
|
INST(FCVTZU_int_2, "FCVTZU (vector, integer)", "011111101z100001101110nnnnnddddd")
|
||||||
//INST(FRSQRTE_1, "FRSQRTE", "0111111011111001110110nnnnnddddd")
|
INST(FRSQRTE_1, "FRSQRTE", "0111111011111001110110nnnnnddddd")
|
||||||
INST(FRSQRTE_2, "FRSQRTE", "011111101z100001110110nnnnnddddd")
|
INST(FRSQRTE_2, "FRSQRTE", "011111101z100001110110nnnnnddddd")
|
||||||
|
|
||||||
// Data Processing - FP and SIMD - Scalar three same extra
|
// Data Processing - FP and SIMD - Scalar three same extra
|
||||||
|
|
|
@ -200,6 +200,16 @@ bool TranslatorVisitor::FRECPX_2(bool sz, Vec Vn, Vec Vd) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TranslatorVisitor::FRSQRTE_1(Vec Vn, Vec Vd) {
|
||||||
|
const size_t esize = 16;
|
||||||
|
|
||||||
|
const IR::U16 operand = V_scalar(esize, Vn);
|
||||||
|
const IR::U16 result = ir.FPRSqrtEstimate(operand);
|
||||||
|
|
||||||
|
V_scalar(esize, Vd, result);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool TranslatorVisitor::FRSQRTE_2(bool sz, Vec Vn, Vec Vd) {
|
bool TranslatorVisitor::FRSQRTE_2(bool sz, Vec Vn, Vec Vd) {
|
||||||
const size_t esize = sz ? 64 : 32;
|
const size_t esize = sz ? 64 : 32;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue