This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / d30v / ic-d30v
CommitLineData
c906108c
SS
1# Instruction cache rules
2#
3# This file is part of the program psim.
4#
5# Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20#
21compute:RA:RA::
22compute:RA:Ra:signed32 *:(&GPR[RA])
23compute:RA:RaH:signed16 *:AH2_4(Ra)
24compute:RA:RaL:signed16 *:AL2_4(Ra)
25compute:RA:val_Ra:signed32:(RA == 0 ? 0 : GPR[RA])
26#
27compute:RB:RB::
28compute:RB:Rb:signed32:(RB == 0 ? 0 : GPR[RB])
29compute:RB:RbU:unsigned32:(RB == 0 ? 0 : GPR[RB])
30compute:RB:RbH:signed16:VH2_4(Rb)
31compute:RB:RbL:signed16:VL2_4(Rb)
32compute:RB:RbHU:unsigned16:VH2_4(Rb)
33compute:RB:RbLU:unsigned16:VL2_4(Rb)
34#
35compute:RC:RC::
36compute:RC:Rc:signed32:(RC == 0 ? 0 : GPR[RC])
37compute:RC:RcU:unsigned32:(RC == 0 ? 0 : GPR[RC])
38compute:RC:RcH:signed16:VH2_4(Rc)
39compute:RC:RcL:signed16:VL2_4(Rc)
40#
41#
42compute:IMM_6S:IMM_6S::
43compute:IMM_6S:imm:signed32:SEXT32(IMM_6S, 32 - 6)
44# NB - for short imm[HL] are the same value
45compute:IMM_6S:immHL:signed32:((imm << 16) | MASKED32(imm, 16, 31))
46compute:IMM_6S:immH:signed32:imm
47compute:IMM_6S:immL:signed32:imm
48compute:IMM_6S:imm_6:signed32:IMM_6S
49compute:IMM_6S:imm_5:signed32:LSMASKED32(IMM_6S, 4, 0)
50compute:IMM_6S:imm_6u:unsigned32:(IMM_6S & 0x3f)
51#
52compute:RC:pcdisp:signed32:(Rc & ~0x7)
53compute:RC:pcaddr:signed32:pcdisp
54#
55compute:IMM_18S:IMM_18S::
56compute:IMM_18S:pcdisp:signed32:(SEXT32(IMM_18S, 32 - 18) << 3)
57compute:IMM_18S:pcaddr:signed32:pcdisp
58compute:IMM_12S:IMM_12S::
59compute:IMM_12S:pcdisp:signed32:(SEXT32(IMM_12S, 32 - 12) << 3)
60compute:IMM_12S:pcaddr:signed32:pcdisp
61#
62compute:IMM_8L:IMM_8L::
63compute:IMM_18L:IMM_18L::
64compute:IMM_6L:IMM_6L::
65compute:IMM_6L:imm:signed32:((((IMM_6L << 8) | IMM_8L) << 18) | IMM_18L)
66compute:IMM_6L:immHL:signed32:imm
67compute:IMM_6L:immH:signed32:EXTRACTED32(imm, 0, 15)
68compute:IMM_6L:immL:signed32:EXTRACTED32(imm, 16, 31)
69compute:IMM_6L:pcdisp:signed32:(imm & ~0x7)
70compute:IMM_6L:pcaddr:signed32:pcdisp
71#
72#
73compute:SRC_6:SRC_6::
74compute:SRC_6:src:unsigned32:(XX == 2 ? SEXT32(SRC_6, 32 - 6) : GPR[SRC_6])
75#
76#
77compute:AA:AA::
78compute:AA:Aa:unsigned64*:((CPU)->regs.accumulator + AA)
79compute:AB:AB::
80compute:AB:Ab:unsigned64*:((CPU)->regs.accumulator + AB)
This page took 0.026738 seconds and 4 git commands to generate.