@@ -5667,7 +5667,7 @@ ix86_expand_sse_extend (rtx dest, rtx src, bool unsigned_p)
ops[2] = force_reg (imode, CONST0_RTX (imode));
else
ops[2] = ix86_expand_sse_cmp (gen_reg_rtx (imode), GT, CONST0_RTX (imode),
- src, pc_rtx, pc_rtx);
+ ops[1], pc_rtx, pc_rtx);
ix86_split_mmx_punpck (ops, false);
emit_move_insn (dest, lowpart_subreg (GET_MODE (dest), ops[0], imode));
@@ -22923,8 +22923,7 @@ (define_expand "<insn>v8qiv8hi2"
{
if (!TARGET_SSE4_1)
{
- rtx op1 = force_reg (V8QImode, operands[1]);
- ix86_expand_sse_extend (operands[0], op1, <u_bool>);
+ ix86_expand_sse_extend (operands[0], operands[1], <u_bool>);
DONE;
}
@@ -23240,8 +23239,7 @@ (define_expand "<insn>v4hiv4si2"
{
if (!TARGET_SSE4_1)
{
- rtx op1 = force_reg (V4HImode, operands[1]);
- ix86_expand_sse_extend (operands[0], op1, <u_bool>);
+ ix86_expand_sse_extend (operands[0], operands[1], <u_bool>);
DONE;
}
@@ -23846,8 +23844,7 @@ (define_expand "<insn>v2siv2di2"
{
if (!TARGET_SSE4_1)
{
- rtx op1 = force_reg (V2SImode, operands[1]);
- ix86_expand_sse_extend (operands[0], op1, <u_bool>);
+ ix86_expand_sse_extend (operands[0], operands[1], <u_bool>);
DONE;
}