Commit 11f1ae2a by Paul A. Clarke Committed by Paul Clarke

[rs6000] mmintrin.h: fix use of "vector"

A recent patch inadvertently added the use of "vector" to mmintrin.h
when all such uses should be "__vector".

[gcc]

2018-12-07  Paul A. Clarke  <pc@us.ibm.com>

	PR target/88408
	* config/rs6000/mmintrin.h (_mm_packs_pu16): Correctly use "__vector".

From-SVN: r266895
parent 66a0970a
2018-12-07 Paul A. Clarke <pc@us.ibm.com>
PR target/88408
* config/rs6000/mmintrin.h (_mm_packs_pu16): Correctly use "__vector".
2018-12-07 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/88349
......@@ -228,9 +228,9 @@ _mm_packs_pu16 (__m64 __m1, __m64 __m2)
#endif
const __vector signed short __zero = { 0 };
__vector __bool short __select = vec_cmplt (vm1, __zero);
r = vec_packs ((vector unsigned short) vm1, (vector unsigned short) vm1);
r = vec_packs ((__vector unsigned short) vm1, (__vector unsigned short) vm1);
__vector __bool char packsel = vec_pack (__select, __select);
r = vec_sel (r, (const vector unsigned char) __zero, packsel);
r = vec_sel (r, (const __vector unsigned char) __zero, packsel);
return (__m64) ((__vector long long) r)[0];
}
......
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