Commit cd763723 authored by Christian Würdig's avatar Christian Würdig
Browse files

removed C-99 stuff

parent b0582842
......@@ -1185,10 +1185,11 @@ static void emit_ia32_xCmp(ir_node *irn, ia32_emit_env_t *env) {
int sse_pnc = -1;
long pnc = get_ia32_pncode(irn);
long unord = pnc & pn_Cmp_Uo;
assert( (pnc & ia32_pn_Cmp_Unsigned) == 0);
char cmd_buf[SNPRINTF_BUF_LEN];
char cmnt_buf[SNPRINTF_BUF_LEN];
assert( (pnc & ia32_pn_Cmp_Unsigned) == 0);
switch (pnc) {
case pn_Cmp_Leg: /* odered */
sse_pnc = 7;
......
......@@ -827,12 +827,12 @@ static ir_node *gen_Add(ia32_transform_env_t *env, ir_node *node) {
set_ia32_am_support(new_op, ia32_am_Source);
set_ia32_op_type(new_op, ia32_AddrModeS);
} else {
DEBUG_ONLY(ir_fprintf(stderr, "Warning: add with 2 consts not folded: %+F\n", node));
tarval *tv1 = get_ia32_cnst_tv(new_op1);
tarval *tv2 = get_ia32_cnst_tv(new_op2);
tarval *restv = tarval_add(tv1, tv2);
DEBUG_ONLY(ir_fprintf(stderr, "Warning: add with 2 consts not folded: %+F\n", node));
new_op = new_rd_ia32_Const(dbg, irg, block);
set_ia32_Const_tarval(new_op, restv);
DBG_OPT_LEA3(new_op1, new_op2, node, new_op);
......@@ -1195,12 +1195,12 @@ static ir_node *gen_Sub(ia32_transform_env_t *env, ir_node *node) {
set_ia32_am_support(new_op, ia32_am_Source);
set_ia32_op_type(new_op, ia32_AddrModeS);
} else {
DEBUG_ONLY(ir_fprintf(stderr, "Warning: sub with 2 consts not folded: %+F\n", node));
tarval *tv1 = get_ia32_cnst_tv(new_op1);
tarval *tv2 = get_ia32_cnst_tv(new_op2);
tarval *restv = tarval_sub(tv1, tv2);
DEBUG_ONLY(ir_fprintf(stderr, "Warning: sub with 2 consts not folded: %+F\n", node));
new_op = new_rd_ia32_Const(dbg, irg, block);
set_ia32_Const_tarval(new_op, restv);
DBG_OPT_LEA3(new_op1, new_op2, node, new_op);
......@@ -2662,9 +2662,6 @@ static ir_node *gen_be_Call(ia32_transform_env_t *env, ir_node *node) {
call_mem = new_rd_Proj(dbg, irg, block, node, mode_M, pn_be_Call_M_regular);
if (mode_is_float(mode)) {
// Matze: TODO, fix this for new transform code...
assert(0);
/* store st(0) onto stack */
ir_node *frame = get_irg_frame(irg);
ir_node *fstp = new_rd_ia32_GetST0(dbg, irg, block, frame, noreg, nomem);
......@@ -2674,6 +2671,9 @@ static ir_node *gen_be_Call(ia32_transform_env_t *env, ir_node *node) {
ir_node **in_keep;
int keep_arity, i;
// Matze: TODO, fix this for new transform code...
assert(0);
set_ia32_ls_mode(fstp, mode);
set_ia32_op_type(fstp, ia32_AddrModeD);
set_ia32_use_frame(fstp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment