Cygwin Makefile was to aggresive to remove entire lib/
[tinycc.git] / arm-asm.c
blob5840cde698f7b467ad144a818a99b239fff59902
1 /*************************************************************/
2 /*
3 * ARM dummy assembler for TCC
5 */
7 #ifdef TARGET_DEFS_ONLY
9 #define CONFIG_TCC_ASM
10 #define NB_ASM_REGS 16
12 ST_FUNC void g(int c);
13 ST_FUNC void gen_le16(int c);
14 ST_FUNC void gen_le32(int c);
16 /*************************************************************/
17 #else
18 /*************************************************************/
20 /* XXX: make it faster ? */
21 ST_FUNC void g(int c)
23 int ind1;
24 if (nocode_wanted)
25 return;
26 ind1 = ind + 1;
27 if (ind1 > cur_text_section->data_allocated)
28 section_realloc(cur_text_section, ind1);
29 cur_text_section->data[ind] = c;
30 ind = ind1;
33 ST_FUNC void gen_le16 (int i)
35 g(i);
36 g(i>>8);
39 ST_FUNC void gen_le32 (int i)
41 gen_le16(i);
42 gen_le16(i>>16);
45 ST_FUNC void gen_expr32(ExprValue *pe)
47 gen_le32(pe->v);
50 ST_FUNC void asm_opcode(TCCState *s1, int opcode)
54 ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier)
58 /* generate prolog and epilog code for asm statement */
59 ST_FUNC void asm_gen_code(ASMOperand *operands, int nb_operands,
60 int nb_outputs, int is_output,
61 uint8_t *clobber_regs,
62 int out_reg)
66 ST_FUNC void asm_compute_constraints(ASMOperand *operands,
67 int nb_operands, int nb_outputs,
68 const uint8_t *clobber_regs,
69 int *pout_reg)
73 ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str)
77 ST_FUNC int asm_parse_regvar (int t)
79 return -1;
82 /*************************************************************/
83 #endif /* ndef TARGET_DEFS_ONLY */