comparison mc-codegen.c @ 469:cf1c2c42b7c8

fix iassop
author kono
date Sat, 30 Jul 2005 20:54:40 +0900
parents 464e7480395c
children cc5ea30efe0c
comparison
equal deleted inserted replaced
468:464e7480395c 469:cf1c2c42b7c8
2198 } 2198 }
2199 /* new = &e2 */ 2199 /* new = &e2 */
2200 /* *new = *new op e3 */ 2200 /* *new = *new op e3 */
2201 n = list3(LVAR,new_lvar(size_of_int),0); 2201 n = list3(LVAR,new_lvar(size_of_int),0);
2202 g_expr_u(assign_expr0(n,list2(ADDRESS,e2),INT,INT)); 2202 g_expr_u(assign_expr0(n,list2(ADDRESS,e2),INT,INT));
2203 g_expr(assign_expr0(list2(INDIRECT,n),list3(op,n,e3),t,t)); 2203 g_expr(assign_expr0(rvalue_t(n,INT),
2204 list3(op,rvalue_t(list2(INDIRECT,rvalue_t(n,INT)),t),e3),t,t));
2204 free_lvar(cadr(n)); 2205 free_lvar(cadr(n));
2205 return; 2206 return;
2206 } 2207 }
2207 g_expr(e3); 2208 g_expr(e3);
2208 emit_push(); 2209 emit_push();