[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
This commit is contained in:
parent
66a0970a1f
commit
11f1ae2aae
@ -1,3 +1,8 @@
|
||||
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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user