Reworked "FNEG" instruction to make ASIC optimizations more difficult

This commit is contained in:
tevador
2019-02-13 00:01:34 +01:00
parent 376c868ca0
commit f76e8c2e20
11 changed files with 29 additions and 24 deletions
+3 -3
View File
@@ -237,7 +237,7 @@ namespace RandomX {
os << std::endl;
}
void Instruction::h_FNEG_R(std::ostream& os) const {
void Instruction::h_FSCAL_R(std::ostream& os) const {
auto dstIndex = dst % 4;
os << "f" << dstIndex << std::endl;
}
@@ -362,7 +362,7 @@ namespace RandomX {
INST_NAME(FADD_M)
INST_NAME(FSUB_R)
INST_NAME(FSUB_M)
INST_NAME(FNEG_R)
INST_NAME(FSCAL_R)
//Floating point group E
INST_NAME(FMUL_R)
@@ -413,7 +413,7 @@ namespace RandomX {
INST_HANDLE(FADD_M)
INST_HANDLE(FSUB_R)
INST_HANDLE(FSUB_M)
INST_HANDLE(FNEG_R)
INST_HANDLE(FSCAL_R)
//Floating point group E
INST_HANDLE(FMUL_R)