mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
target-sh4: add fipr instruction
Add the fipr FVm,FVn instruction, which computes the inner products of a 4-dimensional single precision floating-point vector. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
21829e9b39
commit
af8c2bde4b
3 changed files with 33 additions and 0 deletions
|
@ -1859,6 +1859,18 @@ static void _decode_opc(DisasContext * ctx)
|
|||
tcg_temp_free_i64(fp);
|
||||
}
|
||||
return;
|
||||
case 0xf0ed: /* fipr FVm,FVn */
|
||||
CHECK_FPU_ENABLED
|
||||
if ((ctx->fpscr & FPSCR_PR) == 0) {
|
||||
TCGv m, n;
|
||||
m = tcg_const_i32((ctx->opcode >> 16) & 3);
|
||||
n = tcg_const_i32((ctx->opcode >> 18) & 3);
|
||||
gen_helper_fipr(m, n);
|
||||
tcg_temp_free(m);
|
||||
tcg_temp_free(n);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
#if 0
|
||||
fprintf(stderr, "unknown instruction 0x%04x at pc 0x%08x\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue