First (not quite working) floating point benchmark.

This commit is contained in:
Chad Kersey
2013-10-06 13:40:05 -04:00
parent 89e66d64f2
commit 0e0aa64e74
6 changed files with 45 additions and 10 deletions

View File

@@ -159,6 +159,9 @@ void Instruction::executeOn(Core &c) {
case SHL: reg[rdest] = reg[rsrc[0]] << reg[rsrc[1]];
reg[rdest].trunc(wordSz);
break;
case SHR: reg[rdest] = reg[rsrc[0]] >> reg[rsrc[1]];
reg[rdest].trunc(wordSz);
break;
case MOD: if (reg[rsrc[1]] == 0) throw DomainException();
reg[rdest] = reg[rsrc[0]] % reg[rsrc[1]];
break;