MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getAsmOpcode

Function getAsmOpcode

lib/asm-docs/generated/asm-docs-perl.ts:3–3011  ·  view source on GitHub ↗
(opcode: string | undefined)

Source from the content-addressed store, hash-verified

1import type {AssemblyInstructionInfo} from '../../../types/assembly-docs.interfaces.js';
2
3export function getAsmOpcode(opcode: string | undefined): AssemblyInstructionInfo | undefined {
4 if (!opcode) return;
5 switch (opcode.toLowerCase()) {
6 case "aassign":
7 return {
8 "html": "<p>list assignment</p>",
9 "tooltip": "list assignment",
10 "url": ""
11 };
12
13 case "abs":
14 return {
15 "html": "<p>abs</p>",
16 "tooltip": "abs",
17 "url": ""
18 };
19
20 case "accept":
21 return {
22 "html": "<p>accept</p>",
23 "tooltip": "accept",
24 "url": ""
25 };
26
27 case "add":
28 return {
29 "html": "<p>addition (+)</p>",
30 "tooltip": "addition (+)",
31 "url": ""
32 };
33
34 case "aeach":
35 return {
36 "html": "<p>each on array</p>",
37 "tooltip": "each on array",
38 "url": ""
39 };
40
41 case "aelem":
42 return {
43 "html": "<p>array element</p>",
44 "tooltip": "array element",
45 "url": ""
46 };
47
48 case "aelemfast":
49 return {
50 "html": "<p>constant array element</p>",
51 "tooltip": "constant array element",
52 "url": ""
53 };
54
55 case "aelemfast_lex":
56 return {
57 "html": "<p>constant lexical array element</p>",
58 "tooltip": "constant lexical array element",
59 "url": ""
60 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected