3 // Simulator definition for the MIPS16e instructions.
4 // Copyright (C) 2005 Free Software Foundation, Inc.
5 // Contributed by Nigel Stephens (nigel@mips.com) and
6 // David Ung (davidu@mips.com) of MIPS Technologies.
8 // This file is part of GDB, the GNU debugger.
10 // This program is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 2, or (at your option)
15 // This program is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
20 // You should have received a copy of the GNU General Public License along
21 // with this program; if not, write to the Free Software Foundation, Inc.,
22 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 11101,3.RX,100,10001:RR:16::SEB
29 TRACE_ALU_INPUT1 (GPR[TRX]);
30 GPR[TRX] = EXTEND8 (GPR[TRX]);
31 TRACE_ALU_RESULT (GPR[TRX]);
35 11101,3.RX,101,10001:RR:16::SEH
39 TRACE_ALU_INPUT1 (GPR[TRX]);
40 GPR[TRX] = EXTEND16 (GPR[TRX]);
41 TRACE_ALU_RESULT (GPR[TRX]);
44 11101,3.RX,110,10001:RR:16::SEW
48 check_u64 (SD_, instruction_0);
49 TRACE_ALU_INPUT1 (GPR[TRX]);
50 GPR[TRX] = EXTEND32 (GPR[TRX]);
51 TRACE_ALU_RESULT (GPR[TRX]);
54 11101,3.RX,000,10001:RR:16::ZEB
58 TRACE_ALU_INPUT1 (GPR[TRX]);
59 GPR[TRX] = (unsigned_word)(unsigned8)(GPR[TRX]);
60 TRACE_ALU_RESULT (GPR[TRX]);
63 11101,3.RX,001,10001:RR:16::ZEH
67 TRACE_ALU_INPUT1 (GPR[TRX]);
68 GPR[TRX] = (unsigned_word)(unsigned16)(GPR[TRX]);
69 TRACE_ALU_RESULT (GPR[TRX]);
72 11101,3.RX,010,10001:RR:16::ZEW
76 check_u64 (SD_, instruction_0);
77 TRACE_ALU_INPUT1 (GPR[TRX]);
78 GPR[TRX] = (unsigned_word)(unsigned32)(GPR[TRX]);
79 TRACE_ALU_RESULT (GPR[TRX]);
83 11101,3.RX,100,00000:RR:16::JRC
91 11101,000,101,00000:RR:16::JRCRA
99 11101,3.RX,110,00000:RR:16::JALRC