tcg-target.c.inc (6a6d772e30d62e209587ef341df243e9789f5a9f) tcg-target.c.inc (5e3d0c199f4edf4ecdf8100464da441c60ce36e3)
1/*
2 * Tiny Code Generator for QEMU
3 *
4 * Copyright (c) 2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 95 unchanged lines hidden (view full) ---

104#endif
105 TCG_REG_R8,
106 TCG_REG_R9,
107#else
108 /* 32 bit mode uses stack based calling convention (GCC default). */
109#endif
110};
111
1/*
2 * Tiny Code Generator for QEMU
3 *
4 * Copyright (c) 2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 95 unchanged lines hidden (view full) ---

104#endif
105 TCG_REG_R8,
106 TCG_REG_R9,
107#else
108 /* 32 bit mode uses stack based calling convention (GCC default). */
109#endif
110};
111
112static const int tcg_target_call_oarg_regs[] = {
113 TCG_REG_EAX,
114#if TCG_TARGET_REG_BITS == 32
115 TCG_REG_EDX
116#endif
117};
112static TCGReg tcg_target_call_oarg_reg(TCGCallReturnKind kind, int slot)
113{
114 switch (kind) {
115 case TCG_CALL_RET_NORMAL:
116 tcg_debug_assert(slot >= 0 && slot <= 1);
117 return slot ? TCG_REG_EDX : TCG_REG_EAX;
118 default:
119 g_assert_not_reached();
120 }
121}
118
119/* Constants we accept. */
120#define TCG_CT_CONST_S32 0x100
121#define TCG_CT_CONST_U32 0x200
122#define TCG_CT_CONST_I32 0x400
123#define TCG_CT_CONST_WSZ 0x800
124
125/* Registers used with L constraint, which are the first argument

--- 4143 unchanged lines hidden ---
122
123/* Constants we accept. */
124#define TCG_CT_CONST_S32 0x100
125#define TCG_CT_CONST_U32 0x200
126#define TCG_CT_CONST_I32 0x400
127#define TCG_CT_CONST_WSZ 0x800
128
129/* Registers used with L constraint, which are the first argument

--- 4143 unchanged lines hidden ---