daily update
[deliverable/binutils-gdb.git] / gdb / common / ax.def
CommitLineData
94d5e490
TT
1/* Definition of agent opcode values. -*- c -*-
2 Copyright (C) 1998, 1999, 2000, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
4
5 This file is part of GDB.
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 3 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, see <http://www.gnu.org/licenses/>. */
19
20/* The actual values of the various bytecode operations.
21
22 Other independent implementations of the agent bytecode engine will
23 rely on the exact values of these enums, and may not be recompiled
24 when we change this table. The numeric values should remain fixed
25 whenever possible. Thus, we assign them values explicitly here (to
26 allow gaps to form safely), and the disassembly table in
27 agentexpr.h behaves like an opcode map. If you want to see them
28 grouped logically, see doc/agentexpr.texi.
29
30 Each line is of the form:
31
32 DEFOP (name, size, data_size, consumed, produced, opcode)
33
34 NAME is the name of the operation.
35 SIZE is the number of argument bytes that the operation takes from
36 the bytecode stream.
37 DATA_SIZE is the size of data operated on, in bits, for operations
38 that care (ref and const). It is zero otherwise.
39 CONSUMED is the number of stack elements consumed.
40 PRODUCED is the number of stack elements produced.
41 OPCODE is the operation's encoding. */
42
43DEFOP (float, 0, 0, 0, 0, 0x01)
44DEFOP (add, 0, 0, 2, 1, 0x02)
45DEFOP (sub, 0, 0, 2, 1, 0x03)
46DEFOP (mul, 0, 0, 2, 1, 0x04)
47DEFOP (div_signed, 0, 0, 2, 1, 0x05)
48DEFOP (div_unsigned, 0, 0, 2, 1, 0x06)
49DEFOP (rem_signed, 0, 0, 2, 1, 0x07)
50DEFOP (rem_unsigned, 0, 0, 2, 1, 0x08)
51DEFOP (lsh, 0, 0, 2, 1, 0x09)
52DEFOP (rsh_signed, 0, 0, 2, 1, 0x0a)
53DEFOP (rsh_unsigned, 0, 0, 2, 1, 0x0b)
54DEFOP (trace, 0, 0, 2, 0, 0x0c)
55DEFOP (trace_quick, 1, 0, 1, 1, 0x0d)
56DEFOP (log_not, 0, 0, 1, 1, 0x0e)
57DEFOP (bit_and, 0, 0, 2, 1, 0x0f)
58DEFOP (bit_or, 0, 0, 2, 1, 0x10)
59DEFOP (bit_xor, 0, 0, 2, 1, 0x11)
60DEFOP (bit_not, 0, 0, 1, 1, 0x12)
61DEFOP (equal, 0, 0, 2, 1, 0x13)
62DEFOP (less_signed, 0, 0, 2, 1, 0x14)
63DEFOP (less_unsigned, 0, 0, 2, 1, 0x15)
64DEFOP (ext, 1, 0, 1, 1, 0x16)
65DEFOP (ref8, 0, 8, 1, 1, 0x17)
66DEFOP (ref16, 0, 16, 1, 1, 0x18)
67DEFOP (ref32, 0, 32, 1, 1, 0x19)
68DEFOP (ref64, 0, 64, 1, 1, 0x1a)
69DEFOP (ref_float, 0, 0, 1, 1, 0x1b)
70DEFOP (ref_double, 0, 0, 1, 1, 0x1c)
71DEFOP (ref_long_double, 0, 0, 1, 1, 0x1d)
72DEFOP (l_to_d, 0, 0, 1, 1, 0x1e)
73DEFOP (d_to_l, 0, 0, 1, 1, 0x1f)
74DEFOP (if_goto, 2, 0, 1, 0, 0x20)
75DEFOP (goto, 2, 0, 0, 0, 0x21)
76DEFOP (const8, 1, 8, 0, 1, 0x22)
77DEFOP (const16, 2, 16, 0, 1, 0x23)
78DEFOP (const32, 4, 32, 0, 1, 0x24)
79DEFOP (const64, 8, 64, 0, 1, 0x25)
80DEFOP (reg, 2, 0, 0, 1, 0x26)
81DEFOP (end, 0, 0, 0, 0, 0x27)
82DEFOP (dup, 0, 0, 1, 2, 0x28)
83DEFOP (pop, 0, 0, 1, 0, 0x29)
84DEFOP (zero_ext, 1, 0, 1, 1, 0x2a)
85DEFOP (swap, 0, 0, 2, 2, 0x2b)
86DEFOP (getv, 2, 0, 0, 1, 0x2c)
87DEFOP (setv, 2, 0, 0, 1, 0x2d)
88DEFOP (tracev, 2, 0, 0, 1, 0x2e)
a04b0428 89/* We need something here just to make the tables come out ok. */
94d5e490
TT
90DEFOP (invalid, 0, 0, 0, 0, 0x2f)
91DEFOP (trace16, 2, 0, 1, 1, 0x30)
a04b0428 92/* We need something here just to make the tables come out ok. */
ee00cd23 93DEFOP (invalid2, 0, 0, 0, 0, 0x31)
a04b0428
JB
94/* The "consumed" number for pick is wrong, but there's no way to
95 express the right thing. */
94d5e490
TT
96DEFOP (pick, 1, 0, 0, 1, 0x32)
97DEFOP (rot, 0, 0, 3, 3, 0x33)
This page took 0.0769069999999999 seconds and 4 git commands to generate.