collab/polyglot-riscv-arm

what if the same machine code was valid riscv and arm asm

git clone https://git.julia.blue/collab/polyglot-riscv-arm

Jonathan Dönszelmannwebsite start885cc4e

main
16.8 KiB331 linesraw
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
3<!-- Generated by Microsoft Visio 11.0, SVG Export, v1.0 vrev32_operation_examples.svg Page-1 -->
4<!-- Copyright (c) 2014 ARM Limited or its affiliates. All rights reserved. -->
5<svg xmlns="http://www.w3.org/2000/svg" 
6     xmlns:xlink="http://www.w3.org/1999/xlink" 
7     xmlns:v="http://schemas.microsoft.com/visio/2003/SVGExtensions/" width="5.52987in"
8		height="1.55349in" viewBox="0 0 398.15 111.851" xml:space="preserve" color-interpolation-filters="sRGB" class="st9">
9	<v:documentProperties v:langID="1033" v:metric="true" v:viewMarkup="false"/>
10
11	<style type="text/css">
12	<![CDATA[
13		.st1 {fill:none;stroke:none;stroke-linecap:butt;stroke-width:0.5}
14		.st2 {fill:#000000;font-family:Arial;font-size:0.666664em}
15		.st3 {fill:#ffffff;stroke:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.0169691}
16		.st4 {stroke:#000000;stroke-linecap:butt;stroke-width:0.5}
17		.st5 {fill:#ffffff;visibility:hidden}
18		.st6 {stroke:#000000;stroke-linecap:butt;stroke-width:0.8}
19		.st7 {marker-end:url(#mrkr4-116);stroke:#000000;stroke-linecap:butt;stroke-width:0.5}
20		.st8 {fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1;stroke-width:0.21739130434783}
21		.st9 {fill:none;fill-rule:evenodd;font-size:12;overflow:visible;stroke-linecap:square;stroke-miterlimit:3}
22	]]>
23	</style>
24
25	<defs id="Markers">
26		<g id="lend4">
27			<path d="M 2 1 L -0 0 L 2 -1 L 2 1 " style="stroke:none"/>
28		</g>
29		<marker id="mrkr4-116" class="st8" v:arrowType="4" v:arrowSize="1" v:setback="9.2" refX="-9.2" orient="auto"
30				markerUnits="strokeWidth">
31			<use xlink:href="#lend4" transform="scale(-4.6,-4.6) "/>
32		</marker>
33	</defs>
34	<g v:mID="0" v:index="1" v:groupContext="foregroundPage">
35		<title>Page-1</title>
36		<v:pageProperties v:drawingScale="0.0393701" v:pageScale="0.0393701" v:drawingUnits="24" v:shadowOffsetX="0"
37				v:shadowOffsetY="0" v:shadowType="1" v:shadowScale="0"/>
38		<g id="shape9-1" v:mID="9" v:groupContext="shape" transform="translate(0.5,-85.8394)">
39			<title>Sheet.9</title>
40			<desc>Dm</desc>
41			<v:textBlock v:margins="rect(1,2,1,0)" v:tabSpace="42.5197"/>
42			<v:textRect cx="8.50394" cy="106.182" width="17.01" height="11.3386"/>
43			<rect x="0" y="100.513" width="17.0079" height="11.3386" class="st1"/>
44			<text x="2.57" y="108.58" class="st2" v:langID="2057"><v:paragraph v:horizAlign="2"/><v:tabList/>Dm</text>		</g>
45		<g id="shape1-4" v:mID="1" v:groupContext="shape" transform="translate(102.547,-85.8394)">
46			<title>Sheet.1</title>
47			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
48		</g>
49		<g id="shape4-6" v:mID="4" v:groupContext="shape" transform="translate(116.72,-85.8394)">
50			<title>Sheet.4</title>
51			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
52		</g>
53		<g id="shape2-8" v:mID="2" v:groupContext="shape" transform="translate(17.5079,-85.8394)">
54			<title>Sheet.2</title>
55			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
56		</g>
57		<g id="shape37-10" v:mID="37" v:groupContext="shape" transform="translate(31.6811,-85.8394)">
58			<title>Sheet.37</title>
59			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
60		</g>
61		<g id="shape38-12" v:mID="38" v:groupContext="shape" transform="translate(31.6811,-85.8394)">
62			<title>Sheet.38</title>
63			<path d="M0 100.51 L0 111.85" class="st4"/>
64		</g>
65		<g id="shape41-15" v:mID="41" v:groupContext="shape" transform="translate(45.8543,-85.8394)">
66			<title>Sheet.41</title>
67			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
68		</g>
69		<g id="shape42-17" v:mID="42" v:groupContext="shape" transform="translate(45.8543,-85.8394)">
70			<title>Sheet.42</title>
71			<path d="M0 100.51 L0 111.85" class="st4"/>
72		</g>
73		<g id="shape45-20" v:mID="45" v:groupContext="shape" transform="translate(60.0276,-85.8394)">
74			<title>Sheet.45</title>
75			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
76		</g>
77		<g id="shape46-22" v:mID="46" v:groupContext="shape" transform="translate(60.0276,-85.8394)">
78			<title>Sheet.46</title>
79			<path d="M0 100.51 L0 111.85" class="st4"/>
80		</g>
81		<g id="shape49-25" v:mID="49" v:groupContext="shape" transform="translate(74.2008,-85.8394)">
82			<title>Sheet.49</title>
83			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
84		</g>
85		<g id="shape50-27" v:mID="50" v:groupContext="shape" transform="translate(74.2008,-85.8394)">
86			<title>Sheet.50</title>
87			<path d="M0 100.51 L0 111.85" class="st4"/>
88		</g>
89		<g id="shape53-30" v:mID="53" v:groupContext="shape" transform="translate(88.374,-85.8394)">
90			<title>Sheet.53</title>
91			<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
92		</g>
93		<g id="shape54-32" v:mID="54" v:groupContext="shape" transform="translate(88.374,-85.8394)">
94			<title>Sheet.54</title>
95			<path d="M0 100.51 L0 111.85" class="st4"/>
96		</g>
97		<g id="shape97-35" v:mID="97" v:groupContext="shape" transform="translate(17.5079,-85.8394)">
98			<title>Sheet.97</title>
99			<rect x="0" y="100.513" width="113.386" height="11.3386" class="st5"/>
100			<rect x="0" y="100.513" width="113.386" height="11.3386" class="st6"/>
101		</g>
102		<g id="shape3-38" v:mID="3" v:groupContext="shape" transform="translate(102.547,-85.8394)">
103			<title>Sheet.3</title>
104			<path d="M0 100.51 L0 111.85" class="st4"/>
105		</g>
106		<g id="shape5-41" v:mID="5" v:groupContext="shape" transform="translate(116.72,-85.8394)">
107			<title>Sheet.5</title>
108			<path d="M0 100.51 L0 111.85" class="st4"/>
109		</g>
110		<g id="group7-44" transform="translate(17.5079,-0.8)" v:mID="7" v:groupContext="group">
111			<title>Sheet.7</title>
112			<g id="shape11-45" v:mID="11" v:groupContext="shape" transform="translate(85.0394,1.42109E-014)">
113				<title>Sheet.11</title>
114				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
115			</g>
116			<g id="shape12-47" v:mID="12" v:groupContext="shape" transform="translate(99.2126,1.42109E-014)">
117				<title>Sheet.12</title>
118				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
119			</g>
120			<g id="shape15-49" v:mID="15" v:groupContext="shape">
121				<title>Sheet.15</title>
122				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
123			</g>
124			<g id="shape16-51" v:mID="16" v:groupContext="shape" transform="translate(14.1732,1.42109E-014)">
125				<title>Sheet.16</title>
126				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
127			</g>
128			<g id="shape19-53" v:mID="19" v:groupContext="shape" transform="translate(14.1732,1.42109E-014)">
129				<title>Sheet.19</title>
130				<path d="M0 100.51 L0 111.85" class="st4"/>
131			</g>
132			<g id="shape20-56" v:mID="20" v:groupContext="shape" transform="translate(28.3465,1.42109E-014)">
133				<title>Sheet.20</title>
134				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
135			</g>
136			<g id="shape23-58" v:mID="23" v:groupContext="shape" transform="translate(28.3465,1.42109E-014)">
137				<title>Sheet.23</title>
138				<path d="M0 100.51 L0 111.85" class="st4"/>
139			</g>
140			<g id="shape24-61" v:mID="24" v:groupContext="shape" transform="translate(42.5197,1.42109E-014)">
141				<title>Sheet.24</title>
142				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
143			</g>
144			<g id="shape25-63" v:mID="25" v:groupContext="shape" transform="translate(42.5197,1.42109E-014)">
145				<title>Sheet.25</title>
146				<path d="M0 100.51 L0 111.85" class="st4"/>
147			</g>
148			<g id="shape26-66" v:mID="26" v:groupContext="shape" transform="translate(56.6929,1.42109E-014)">
149				<title>Sheet.26</title>
150				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
151			</g>
152			<g id="shape27-68" v:mID="27" v:groupContext="shape" transform="translate(56.6929,1.42109E-014)">
153				<title>Sheet.27</title>
154				<path d="M0 100.51 L0 111.85" class="st4"/>
155			</g>
156			<g id="shape28-71" v:mID="28" v:groupContext="shape" transform="translate(70.8661,1.42109E-014)">
157				<title>Sheet.28</title>
158				<rect x="0" y="100.513" width="14.1732" height="11.3386" class="st3"/>
159			</g>
160			<g id="shape29-73" v:mID="29" v:groupContext="shape" transform="translate(70.8661,1.42109E-014)">
161				<title>Sheet.29</title>
162				<path d="M0 100.51 L0 111.85" class="st4"/>
163			</g>
164			<g id="shape30-76" v:mID="30" v:groupContext="shape">
165				<title>Sheet.30</title>
166				<rect x="0" y="100.513" width="113.386" height="11.3386" class="st5"/>
167				<rect x="0" y="100.513" width="113.386" height="11.3386" class="st6"/>
168			</g>
169			<g id="shape31-79" v:mID="31" v:groupContext="shape" transform="translate(85.0394,1.42109E-014)">
170				<title>Sheet.31</title>
171				<path d="M0 100.51 L0 111.85" class="st4"/>
172			</g>
173			<g id="shape32-82" v:mID="32" v:groupContext="shape" transform="translate(99.2126,1.42109E-014)">
174				<title>Sheet.32</title>
175				<path d="M0 100.51 L0 111.85" class="st4"/>
176			</g>
177		</g>
178		<g id="shape8-85" v:mID="8" v:groupContext="shape" transform="translate(340.657,-85.8394)">
179			<title>Sheet.8</title>
180			<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
181		</g>
182		<g id="shape10-87" v:mID="10" v:groupContext="shape" transform="translate(170.579,-85.8394)">
183			<title>Sheet.10</title>
184			<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
185		</g>
186		<g id="shape13-89" v:mID="13" v:groupContext="shape" transform="translate(227.272,-85.8394)">
187			<title>Sheet.13</title>
188			<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
189		</g>
190		<g id="shape14-91" v:mID="14" v:groupContext="shape" transform="translate(227.272,-85.8394)">
191			<title>Sheet.14</title>
192			<path d="M0 100.51 L0 111.85" class="st4"/>
193		</g>
194		<g id="shape17-94" v:mID="17" v:groupContext="shape" transform="translate(283.965,-85.8394)">
195			<title>Sheet.17</title>
196			<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
197		</g>
198		<g id="shape18-96" v:mID="18" v:groupContext="shape" transform="translate(283.965,-85.8394)">
199			<title>Sheet.18</title>
200			<path d="M0 100.51 L0 111.85" class="st4"/>
201		</g>
202		<g id="shape21-99" v:mID="21" v:groupContext="shape" transform="translate(170.579,-85.8394)">
203			<title>Sheet.21</title>
204			<rect x="0" y="100.513" width="226.772" height="11.3386" class="st5"/>
205			<rect x="0" y="100.513" width="226.772" height="11.3386" class="st6"/>
206		</g>
207		<g id="shape22-102" v:mID="22" v:groupContext="shape" transform="translate(340.657,-85.8394)">
208			<title>Sheet.22</title>
209			<path d="M0 100.51 L0 111.85" class="st4"/>
210		</g>
211		<g id="shape34-105" v:mID="34" v:groupContext="shape" transform="translate(153.571,-85.8394)">
212			<title>Sheet.34</title>
213			<desc>Dm</desc>
214			<v:textBlock v:margins="rect(1,2,1,0)" v:tabSpace="42.5197"/>
215			<v:textRect cx="8.50394" cy="106.182" width="17.01" height="11.3386"/>
216			<rect x="0" y="100.513" width="17.0079" height="11.3386" class="st1"/>
217			<text x="2.57" y="108.58" class="st2" v:langID="2057"><v:paragraph v:horizAlign="2"/><v:tabList/>Dm</text>		</g>
218		<g id="shape35-108" v:mID="35" v:groupContext="shape" transform="translate(0.5,-0.8)">
219			<title>Sheet.35</title>
220			<desc>Dd</desc>
221			<v:textBlock v:margins="rect(1,2,1,0)" v:tabSpace="42.5197"/>
222			<v:textRect cx="8.50394" cy="106.182" width="17.01" height="11.3386"/>
223			<rect x="0" y="100.513" width="17.0079" height="11.3386" class="st1"/>
224			<text x="4.78" y="108.58" class="st2" v:langID="2057"><v:paragraph v:horizAlign="2"/><v:tabList/>Dd</text>		</g>
225		<g id="shape51-111" v:mID="51" v:groupContext="shape" transform="translate(203.03,0.86101) rotate(77.0054)">
226			<title>Signal 2</title>
227			<path d="M0 111.85 L71.04 111.85" class="st7"/>
228		</g>
229		<g id="shape52-117" v:mID="52" v:groupContext="shape" transform="translate(146.337,0.86101) rotate(77.0054)">
230			<title>Signal 2.52</title>
231			<path d="M0 111.85 L71.04 111.85" class="st7"/>
232		</g>
233		<g id="shape55-122" v:mID="55" v:groupContext="shape" transform="translate(175.129,-32.6091) rotate(58.3925)">
234			<title>Signal 2.55</title>
235			<path d="M0 111.85 L81.94 111.85" class="st7"/>
236		</g>
237		<g id="shape56-127" v:mID="56" v:groupContext="shape" transform="translate(118.436,-32.6091) rotate(58.3925)">
238			<title>Signal 2.56</title>
239			<path d="M0 111.85 L81.94 111.85" class="st7"/>
240		</g>
241		<g id="shape57-132" v:mID="57" v:groupContext="shape" transform="translate(-31.187,-29.8827) rotate(-60.0184) scale(-1,1)">
242			<title>Signal 2.57</title>
243			<path d="M0 111.85 L80.49 111.85" class="st7"/>
244		</g>
245		<g id="shape58-137" v:mID="58" v:groupContext="shape" transform="translate(28.3405,-29.8827) rotate(-60.0184) scale(-1,1)">
246			<title>Signal 2.58</title>
247			<path d="M0 111.85 L80.49 111.85" class="st7"/>
248		</g>
249		<g id="shape59-142" v:mID="59" v:groupContext="shape" transform="translate(1.2126,4.88901) rotate(-79.1145) scale(-1,1)">
250			<title>Signal 2.59</title>
251			<path d="M0 111.85 L70.45 111.85" class="st7"/>
252		</g>
253		<g id="shape60-147" v:mID="60" v:groupContext="shape" transform="translate(-58.315,4.88901) rotate(-79.1145) scale(-1,1)">
254			<title>Signal 2.60</title>
255			<path d="M0 111.85 L70.45 111.85" class="st7"/>
256		</g>
257		<g id="group61-152" transform="translate(170.579,-0.8)" v:mID="61" v:groupContext="group">
258			<title>Sheet.61</title>
259			<g id="shape62-153" v:mID="62" v:groupContext="shape" transform="translate(170.079,1.42109E-014)">
260				<title>Sheet.62</title>
261				<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
262			</g>
263			<g id="shape63-155" v:mID="63" v:groupContext="shape">
264				<title>Sheet.63</title>
265				<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
266			</g>
267			<g id="shape64-157" v:mID="64" v:groupContext="shape" transform="translate(56.6929,1.42109E-014)">
268				<title>Sheet.64</title>
269				<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
270			</g>
271			<g id="shape65-159" v:mID="65" v:groupContext="shape" transform="translate(56.6929,1.42109E-014)">
272				<title>Sheet.65</title>
273				<path d="M0 100.51 L0 111.85" class="st4"/>
274			</g>
275			<g id="shape66-162" v:mID="66" v:groupContext="shape" transform="translate(113.386,1.42109E-014)">
276				<title>Sheet.66</title>
277				<rect x="0" y="100.513" width="56.6929" height="11.3386" class="st3"/>
278			</g>
279			<g id="shape67-164" v:mID="67" v:groupContext="shape" transform="translate(113.386,1.42109E-014)">
280				<title>Sheet.67</title>
281				<path d="M0 100.51 L0 111.85" class="st4"/>
282			</g>
283			<g id="shape68-167" v:mID="68" v:groupContext="shape">
284				<title>Sheet.68</title>
285				<rect x="0" y="100.513" width="226.772" height="11.3386" class="st5"/>
286				<rect x="0" y="100.513" width="226.772" height="11.3386" class="st6"/>
287			</g>
288			<g id="shape69-170" v:mID="69" v:groupContext="shape" transform="translate(170.079,1.42109E-014)">
289				<title>Sheet.69</title>
290				<path d="M0 100.51 L0 111.85" class="st4"/>
291			</g>
292		</g>
293		<g id="shape70-173" v:mID="70" v:groupContext="shape" transform="translate(153.571,-0.8)">
294			<title>Sheet.70</title>
295			<desc>Dd</desc>
296			<v:textBlock v:margins="rect(1,2,1,0)" v:tabSpace="42.5197"/>
297			<v:textRect cx="8.50394" cy="106.182" width="17.01" height="11.3386"/>
298			<rect x="0" y="100.513" width="17.0079" height="11.3386" class="st1"/>
299			<text x="4.78" y="108.58" class="st2" v:langID="2057"><v:paragraph v:horizAlign="2"/><v:tabList/>Dd</text>		</g>
300		<g id="shape6-176" v:mID="6" v:groupContext="shape" transform="translate(287.581,-42.1851) rotate(52.4314)">
301			<title>Signal 2.6</title>
302			<path d="M0 111.85 L88.38 111.85" class="st7"/>
303		</g>
304		<g id="shape33-181" v:mID="33" v:groupContext="shape" transform="translate(400.967,-42.1851) rotate(52.4314)">
305			<title>Signal 2.33</title>
306			<path d="M0 111.85 L88.38 111.85" class="st7"/>
307		</g>
308		<g id="shape36-186" v:mID="36" v:groupContext="shape" transform="translate(280.348,-42.1851) rotate(-52.4314) scale(-1,1)">
309			<title>Signal 2.36</title>
310			<path d="M0 111.85 L88.38 111.85" class="st7"/>
311		</g>
312		<g id="shape39-191" v:mID="39" v:groupContext="shape" transform="translate(164.128,-42.1851) rotate(-52.4314) scale(-1,1)">
313			<title>Signal 2.39</title>
314			<path d="M0 111.85 L88.38 111.85" class="st7"/>
315		</g>
316		<g id="shape98-196" v:mID="98" v:groupContext="shape" transform="translate(0.5,-100.013)">
317			<title>Sheet.98</title>
318			<desc>VREV32.8, doubleword</desc>
319			<v:textBlock v:margins="rect(1,0,1,2)" v:tabSpace="42.5197"/>
320			<v:textRect cx="45.3543" cy="106.182" width="90.71" height="11.3386"/>
321			<rect x="0" y="100.513" width="90.7087" height="11.3386" class="st1"/>
322			<text x="2" y="108.58" class="st2" v:langID="2057"><v:paragraph/><v:tabList/>VREV32.8, doubleword</text>		</g>
323		<g id="shape99-199" v:mID="99" v:groupContext="shape" transform="translate(153.571,-100.013)">
324			<title>Sheet.99</title>
325			<desc>VREV32.16, doubleword</desc>
326			<v:textBlock v:margins="rect(1,0,1,2)" v:tabSpace="42.5197"/>
327			<v:textRect cx="45.3543" cy="106.182" width="90.71" height="11.3386"/>
328			<rect x="0" y="100.513" width="90.7087" height="11.3386" class="st1"/>
329			<text x="2" y="108.58" class="st2" v:langID="2057"><v:paragraph/><v:tabList/>VREV32.16, doubleword</text>		</g>
330	</g>
331</svg>