Commit 8b7e7d88 authored by Matthias Braun's avatar Matthias Braun
Browse files

model Unknowns as own nodes (but not in form of an unknown register)

[r27347]
parent 94f6c873
......@@ -829,12 +829,12 @@ ir_node *gen_Unknown(ir_node *node)
if (mode_is_float(mode)) {
if (ia32_cg_config.use_sse2) {
res = new_bd_ia32_xZero(dbgi, block);
res = new_bd_ia32_xUnknown(dbgi, block);
} else {
res = new_bd_ia32_vfldz(dbgi, block);
}
} else if (ia32_mode_needs_gp_reg(mode)) {
res = new_bd_ia32_Const(dbgi, block, NULL, 0, 0, 0);
res = new_bd_ia32_Unknown(dbgi, block);
} else {
panic("unsupported Unknown-Mode");
}
......
......@@ -1196,6 +1196,15 @@ Const => {
mode => $mode_gp,
},
Unknown => {
op_flags => "c",
irn_flags => "R",
reg_req => { out => [ "gp" ] },
latency => 0,
emit => '',
mode => $mode_gp,
},
GetEIP => {
op_flags => "c",
reg_req => { out => [ "gp" ] },
......@@ -1702,6 +1711,15 @@ xZero => {
mode => $mode_xmm
},
xUnknown => {
op_flags => "c",
irn_flags => "R",
reg_req => { out => [ "xmm" ] },
emit => '',
latency => 0,
mode => $mode_xmm
},
xPzero => {
irn_flags => "R",
reg_req => { out => [ "xmm" ] },
......
Supports Markdown
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