Commit 4148ef5f by Tom de Vries Committed by Tom de Vries

Fix out-of-bounds array accesses in ldexpxf3.

2014-04-26  Tom de Vries  <tom@codesourcery.com>

	* config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
	array accesses.

From-SVN: r209824
parent 367ab823
2014-04-26 Tom de Vries <tom@codesourcery.com>
* config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
array accesses.
2014-04-25 Cary Coutant <ccoutant@google.com>
PR debug/60929
......
......@@ -14427,15 +14427,16 @@
"TARGET_USE_FANCY_MATH_387
&& flag_unsafe_math_optimizations"
{
rtx tmp1, tmp2;
if (optimize_insn_for_size_p ())
FAIL;
operands[3] = gen_reg_rtx (XFmode);
operands[4] = gen_reg_rtx (XFmode);
tmp1 = gen_reg_rtx (XFmode);
tmp2 = gen_reg_rtx (XFmode);
emit_insn (gen_floatsixf2 (operands[3], operands[2]));
emit_insn (gen_fscalexf4_i387 (operands[0], operands[4],
operands[1], operands[3]));
emit_insn (gen_floatsixf2 (tmp1, operands[2]));
emit_insn (gen_fscalexf4_i387 (operands[0], tmp2,
operands[1], tmp1));
DONE;
})
......
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