mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
69d5a56645
ISAs. Enable tx39 as igen again.
46 lines
971 B
C
46 lines
971 B
C
// -*- C -*-
|
|
//
|
|
// toshiba specific instructions.
|
|
//
|
|
|
|
011100,5.RS,5.RT,5.RD,00000000000:MMINORM:::MADD
|
|
"madd r<RS>, r<RT>":RD == 0
|
|
"madd r<RD>, r<RS>, r<RT>"
|
|
*r3900
|
|
// start-sanitize-r5900
|
|
*r5900:
|
|
// end-sanitize-r5900
|
|
{
|
|
signed64 prod = (U8_4 (VL4_8 (HI), VL4_8 (LO))
|
|
+ ((signed64) EXTEND32 (GPR[RT])
|
|
* (signed64) EXTEND32 (GPR[RS])));
|
|
TRACE_ALU_INPUT2 (GPR[RS], GPR[RT]);
|
|
LO = EXTEND32 (prod);
|
|
HI = EXTEND32 (VH4_8 (prod));
|
|
TRACE_ALU_RESULT2 (HI, LO);
|
|
if(RD != 0 )
|
|
GPR[RD] = LO;
|
|
}
|
|
|
|
|
|
011100,5.RS,5.RT,5.RD,00000000001:MMINORM:::MADDU
|
|
"maddu r<RS>, r<RT>":RD == 0
|
|
"maddu r<RD>, r<RS>, r<RT>"
|
|
*r3900
|
|
// start-sanitize-r5900
|
|
*r5900:
|
|
// end-sanitize-r5900
|
|
{
|
|
unsigned64 prod = (U8_4 (VL4_8 (HI), VL4_8 (LO))
|
|
+ ((unsigned64) VL4_8 (GPR[RS])
|
|
* (unsigned64) VL4_8 (GPR[RT])));
|
|
TRACE_ALU_INPUT2 (GPR[RS], GPR[RT]);
|
|
LO = EXTEND32 (prod);
|
|
HI = EXTEND32 (VH4_8 (prod));
|
|
TRACE_ALU_RESULT2 (HI, LO);
|
|
if(RD != 0)
|
|
GPR[RD] = LO;
|
|
}
|
|
|
|
|