Commit 6e8fd64f by Bill Schmidt Committed by William Schmidt

vector.md (vec_pack_sfix_trunc_v2df): Adjust for little endian.

2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
	little endian.
	(vec_pack_ufix_trunc_v2df): Likewise.

From-SVN: r204395
parent 5689294c
2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
little endian.
(vec_pack_ufix_trunc_v2df): Likewise.
2013-11-05 H.J. Lu <hongjiu.lu@intel.com> 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/58981 PR middle-end/58981
...@@ -850,7 +850,12 @@ ...@@ -850,7 +850,12 @@
emit_insn (gen_vsx_xvcvdpsxws (r1, operands[1])); emit_insn (gen_vsx_xvcvdpsxws (r1, operands[1]));
emit_insn (gen_vsx_xvcvdpsxws (r2, operands[2])); emit_insn (gen_vsx_xvcvdpsxws (r2, operands[2]));
rs6000_expand_extract_even (operands[0], r1, r2);
if (BYTES_BIG_ENDIAN)
rs6000_expand_extract_even (operands[0], r1, r2);
else
rs6000_expand_extract_even (operands[0], r2, r1);
DONE; DONE;
}) })
...@@ -865,7 +870,12 @@ ...@@ -865,7 +870,12 @@
emit_insn (gen_vsx_xvcvdpuxws (r1, operands[1])); emit_insn (gen_vsx_xvcvdpuxws (r1, operands[1]));
emit_insn (gen_vsx_xvcvdpuxws (r2, operands[2])); emit_insn (gen_vsx_xvcvdpuxws (r2, operands[2]));
rs6000_expand_extract_even (operands[0], r1, r2);
if (BYTES_BIG_ENDIAN)
rs6000_expand_extract_even (operands[0], r1, r2);
else
rs6000_expand_extract_even (operands[0], r2, r1);
DONE; 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