OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [or32/] [insnset.c] - Diff between revs 1244 and 1303

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1244 Rev 1303
Line 510... Line 510...
}
}
INSTRUCTION (lf_div_s) {
INSTRUCTION (lf_div_s) {
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  set_operand32(0, (machword)((float)eval_operand32(1, &breakpoint) / (float)eval_operand32(2, &breakpoint)), &breakpoint);
  set_operand32(0, (machword)((float)eval_operand32(1, &breakpoint) / (float)eval_operand32(2, &breakpoint)), &breakpoint);
}
}
/*INSTRUCTION (lf_ftoi_s) {
INSTRUCTION (lf_ftoi_s) {
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  set_operand32(0, freg[get_operand(1)], &breakpoint);
//  set_operand32(0, freg[get_operand(1)], &breakpoint);
}
}
INSTRUCTION (lf_itof_s) {
INSTRUCTION (lf_itof_s) {
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  freg[get_operand(0)] = eval_operand32(1, &breakpoint);
//  freg[get_operand(0)] = eval_operand32(1, &breakpoint);
}*/
}
INSTRUCTION (lf_madd_s) {
INSTRUCTION (lf_madd_s) {
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  set_operand32(0, (machword)((float)eval_operand32(0, &breakpoint) + (float)eval_operand32(1, &breakpoint) * (float)eval_operand32(2, &breakpoint)), &breakpoint);
  set_operand32(0, (machword)((float)eval_operand32(0, &breakpoint) + (float)eval_operand32(1, &breakpoint) * (float)eval_operand32(2, &breakpoint)), &breakpoint);
}
}
INSTRUCTION (lf_mul_s) {
INSTRUCTION (lf_mul_s) {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.