diff options
author | John van Groningen | 2007-09-03 11:37:51 +0000 |
---|---|---|
committer | John van Groningen | 2007-09-03 11:37:51 +0000 |
commit | 9b83847cb6970f27c204aaccaf96305e018d2380 (patch) | |
tree | 4db4826d654d87d44b35c3a01debbf1fd8ddb0a9 | |
parent | fix typo (#ifdef G_AI64 instead of g_load_s_x) (diff) |
add code_load_i, code_load_si16 and code_load_ui8
-rw-r--r-- | cginstructions.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cginstructions.c b/cginstructions.c index 7655206..d9d365e 100644 --- a/cginstructions.c +++ b/cginstructions.c @@ -4850,6 +4850,36 @@ void code_centry (char *c_function_name,char *clean_function_label,char *s,int l #endif } +void code_load_i (CleanInt offset) +{ + INSTRUCTION_GRAPH graph_1,graph_2; + + graph_1=s_pop_b (); + graph_2=g_load_id (offset,graph_1); + + s_push_b (graph_2); +} + +void code_load_si16 (CleanInt offset) +{ + INSTRUCTION_GRAPH graph_1,graph_2; + + graph_1=s_pop_b (); + graph_2=g_load_des_id (offset,graph_1); + + s_push_b (graph_2); +} + +void code_load_ui8 (CleanInt offset) +{ + INSTRUCTION_GRAPH graph_1,graph_2; + + graph_1=s_pop_b (); + graph_2=g_load_b_id (offset,graph_1); + + s_push_b (graph_2); +} + void code_new_int_reducer (char label_name[],int a_offset) { LABEL *reducer_label; |