]>
Commit | Line | Data |
---|---|---|
cf6145bc DE |
1 | # .Sanitize for devo/sim/testsuite/sim/m32r |
2 | ||
3 | # Each directory to survive it's way into a release will need a file | |
4 | # like this one called "./.Sanitize". All keyword lines must exist, | |
5 | # and must exist in the order specified by this file. Each directory | |
6 | # in the tree will be processed, top down, in the following order. | |
7 | ||
8 | # Hash started lines like this one are comments and will be deleted | |
9 | # before anything else is done. Blank lines will also be squashed | |
10 | # out. | |
11 | ||
12 | # The lines between the "Do-first:" line and the "Things-to-keep:" | |
13 | # line are executed as a /bin/sh shell script before anything else is | |
14 | # done in this | |
15 | ||
16 | Do-first: | |
17 | ||
18 | m32rx_files=" | |
19 | bcl24.cgs | |
20 | bcl8.cgs | |
21 | bncl24.cgs | |
22 | bncl8.cgs | |
f3c7eb69 | 23 | bra8-2.cgs |
cf6145bc DE |
24 | cmpeq.cgs |
25 | cmpz.cgs | |
26 | divh.cgs | |
27 | jc.cgs | |
28 | jnc.cgs | |
29 | maclh1.cgs | |
489564e2 | 30 | maclh1-2.cgs |
cf6145bc DE |
31 | machi-a.cgs |
32 | maclo-a.cgs | |
33 | macwu1.cgs | |
34 | msblo.cgs | |
35 | mulhi-a.cgs | |
36 | mullo-a.cgs | |
37 | mulwu1.cgs | |
38 | mvfachi-a.cgs | |
39 | mvfaclo-a.cgs | |
40 | mvfacmi-a.cgs | |
41 | mvtachi-a.cgs | |
42 | mvtaclo-a.cgs | |
43 | pcmpbz.cgs | |
cf6145bc | 44 | rac-dsi.cgs |
cf6145bc DE |
45 | rach-dsi.cgs |
46 | sadd.cgs | |
47 | sat.cgs | |
48 | satb.cgs | |
49 | sath.cgs | |
50 | sc.cgs | |
51 | snc.cgs" | |
52 | ||
53 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
54 | keep_these_too="${m32rx_files} ${keep_these_too}" | |
55 | else | |
56 | lose_these_too="${m32rx_files} ${lose_these_too}" | |
57 | fi | |
58 | ||
59 | Things-to-keep: | |
60 | ||
61 | allinsn.exp | |
62 | misc.exp | |
63 | testutils.inc | |
64 | ||
65 | add.cgs | |
66 | add3.cgs | |
67 | addi.cgs | |
68 | addv.cgs | |
69 | addv3.cgs | |
70 | addx.cgs | |
71 | and.cgs | |
72 | and3.cgs | |
73 | bc24.cgs | |
74 | bc8.cgs | |
75 | beq.cgs | |
76 | beqz.cgs | |
77 | bgez.cgs | |
78 | bgtz.cgs | |
79 | bl24.cgs | |
80 | bl8.cgs | |
81 | blez.cgs | |
82 | bltz.cgs | |
83 | bnc24.cgs | |
84 | bnc8.cgs | |
85 | bne.cgs | |
86 | bnez.cgs | |
87 | bra24.cgs | |
88 | bra8.cgs | |
89 | cmp.cgs | |
90 | cmpi.cgs | |
91 | cmpu.cgs | |
92 | cmpui.cgs | |
93 | div.cgs | |
94 | divu.cgs | |
95 | jl.cgs | |
96 | jmp.cgs | |
97 | ld-d.cgs | |
98 | ld-plus.cgs | |
99 | ld.cgs | |
100 | ld24.cgs | |
101 | ldb-d.cgs | |
102 | ldb.cgs | |
103 | ldh-d.cgs | |
104 | ldh.cgs | |
105 | ldi16.cgs | |
106 | ldi8.cgs | |
107 | ldub-d.cgs | |
108 | ldub.cgs | |
109 | lduh-d.cgs | |
110 | lduh.cgs | |
111 | lock.cgs | |
112 | machi.cgs | |
113 | maclo.cgs | |
114 | macwhi.cgs | |
115 | macwlo.cgs | |
116 | mul.cgs | |
117 | mulhi.cgs | |
118 | mullo.cgs | |
119 | mulwhi.cgs | |
120 | mulwlo.cgs | |
121 | mv.cgs | |
122 | mvfachi.cgs | |
123 | mvfaclo.cgs | |
124 | mvfacmi.cgs | |
125 | mvfc.cgs | |
126 | mvtachi.cgs | |
127 | mvtaclo.cgs | |
128 | mvtc.cgs | |
129 | neg.cgs | |
130 | nop.cgs | |
131 | not.cgs | |
132 | or.cgs | |
133 | or3.cgs | |
134 | rac.cgs | |
135 | rach.cgs | |
136 | rem.cgs | |
137 | remu.cgs | |
138 | rte.cgs | |
139 | seth.cgs | |
140 | sll.cgs | |
141 | sll3.cgs | |
142 | slli.cgs | |
143 | sra.cgs | |
144 | sra3.cgs | |
145 | srai.cgs | |
146 | srl.cgs | |
147 | srl3.cgs | |
148 | srli.cgs | |
149 | st-d.cgs | |
150 | st-minus.cgs | |
151 | st-plus.cgs | |
152 | st.cgs | |
153 | stb-d.cgs | |
154 | stb.cgs | |
155 | sth-d.cgs | |
156 | sth.cgs | |
157 | sub.cgs | |
158 | subv.cgs | |
159 | subx.cgs | |
160 | trap.cgs | |
161 | unlock.cgs | |
162 | xor.cgs | |
163 | xor3.cgs | |
164 | ||
165 | hello.ms | |
166 | ||
167 | ||
168 | Things-to-lose: | |
169 | ||
170 | Do-last: | |
171 | ||
172 | m32rx_files="allinsn.exp misc.exp testutils.inc" | |
173 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
174 | for i in $m32rx_files ; do | |
175 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
176 | if [ -n "${verbose}" ] ; then | |
177 | echo Keeping m32rx stuff in $i | |
178 | fi | |
179 | fi | |
180 | done | |
181 | else | |
182 | for i in $m32rx_files ; do | |
183 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
184 | if [ -n "${verbose}" ] ; then | |
185 | echo Removing traces of \"m32rx\" from $i... | |
186 | fi | |
187 | cp $i new | |
188 | sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new | |
189 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
190 | if [ -n "${verbose}" ] ; then | |
191 | echo Caching $i in .Recover... | |
192 | fi | |
193 | mv $i .Recover | |
194 | fi | |
195 | mv new $i | |
196 | fi | |
197 | done | |
198 | # Remove m32rx from `mach'. | |
199 | for i in *.cgs ; do | |
200 | if [ -n "${verbose}" ] ; then | |
201 | echo Removing traces of \"m32rx\" from $i... | |
202 | fi | |
203 | cp $i new | |
204 | sed -e 's/m32rx//' < $i > new | |
205 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
206 | if [ -n "${verbose}" ] ; then | |
207 | echo Caching $i in .Recover... | |
208 | fi | |
209 | mv $i .Recover | |
210 | fi | |
211 | mv new $i | |
212 | done | |
213 | fi | |
214 | ||
215 | # End of file. |