OSDN Git Service

(MOD[SD]I_LIBCALL): Call ots$rem, not ots$mod.
[pf3gnuchains/gcc-fork.git] / gcc / bc-optab.h
1 /* Bytecode token definitions for GNU C-compiler.
2    Copyright (C) 1993 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21
22 extern void bc_expand_conversion ();
23 extern void bc_expand_truth_conversion ();
24 extern void bc_expand_binary_operation ();
25 extern void bc_expand_unary_operation ();
26
27 struct binary_operator
28 {
29   enum bytecode_opcode opcode;
30   enum typecode result;
31   enum typecode arg0;
32   enum typecode arg1;
33 };
34
35 extern struct binary_operator optab_plus_expr[];
36 extern struct binary_operator optab_minus_expr[];
37 extern struct binary_operator optab_mult_expr[];
38 extern struct binary_operator optab_trunc_div_expr[];
39 extern struct binary_operator optab_trunc_mod_expr[];
40 extern struct binary_operator optab_rdiv_expr[];
41 extern struct binary_operator optab_bit_and_expr[];
42 extern struct binary_operator optab_bit_ior_expr[];
43 extern struct binary_operator optab_bit_xor_expr[];
44 extern struct binary_operator optab_lshift_expr[];
45 extern struct binary_operator optab_rshift_expr[];
46 extern struct binary_operator optab_truth_and_expr[];
47 extern struct binary_operator optab_truth_or_expr[];
48 extern struct binary_operator optab_lt_expr[];
49 extern struct binary_operator optab_le_expr[];
50 extern struct binary_operator optab_ge_expr[];
51 extern struct binary_operator optab_gt_expr[];
52 extern struct binary_operator optab_eq_expr[];
53 extern struct binary_operator optab_ne_expr[];
54
55 struct unary_operator
56 {
57   enum bytecode_opcode opcode;
58   enum typecode result;
59   enum typecode arg0;
60 };
61
62 extern struct unary_operator optab_negate_expr[];
63 extern struct unary_operator optab_bit_not_expr[];
64 extern struct unary_operator optab_truth_not_expr[];
65
66 struct increment_operator
67 {
68   enum bytecode_opcode opcode;
69   enum typecode arg;
70 };
71
72 extern struct increment_operator optab_predecrement_expr[];
73 extern struct increment_operator optab_preincrement_expr[];
74 extern struct increment_operator optab_postdecrement_expr[];
75 extern struct increment_operator optab_postincrement_expr[];