Commit 6f5bdf57 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Unbreak usually deactivated code to construct SSE constants.

parent 61c58871
......@@ -384,11 +384,12 @@ static ir_node *gen_Const(ir_node *node)
ir_node *imm32 = ia32_create_Immediate(irg, 32);
/* fine, lower 32bit are zero, produce 32bit value */
unsigned const val = be_get_tv_bits32(tv, 4);
ir_node *cnst
= new_bd_ia32_Const(dbgi, block, NULL, 0, val);
ir_node *movd = new_bd_ia32_xMovd(dbgi, block, cnst);
res = new_bd_ia32_xPsllq(dbgi, block, movd, imm32);
x86_imm32_t const imm = {
.offset = be_get_tv_bits32(tv, 4),
};
ir_node *const cnst = new_bd_ia32_Const(dbgi, block, &imm);
ir_node *const movd = new_bd_ia32_xMovd(dbgi, block, cnst);
res = new_bd_ia32_xPsllq(dbgi, block, movd, imm32, size);
goto end;
}
#endif /* CONSTRUCT_SSE_CONST */
......
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