mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 11:16:29 +03:00
[VSX] movemask needs to be explicitly aligned on clang for vec_ste
This commit is contained in:
@@ -269,10 +269,10 @@ really_inline SuperVector<16> SuperVector<16>::eq(SuperVector<16> const &b) cons
|
||||
template <>
|
||||
really_inline typename SuperVector<16>::comparemask_type
|
||||
SuperVector<16>::comparemask(void) const {
|
||||
uint8x16_t bitmask = vec_gb( u.u8x16[0]);
|
||||
static uint8x16_t perm = { 16, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
uint8x16_t bitmask = vec_gb(u.u8x16[0]);
|
||||
bitmask = (uint8x16_t) vec_perm(vec_splat_u8(0), bitmask, perm);
|
||||
u32 movemask;
|
||||
u32 ALIGN_ATTR(16) movemask;
|
||||
vec_ste((uint32x4_t) bitmask, 0, &movemask);
|
||||
return movemask;
|
||||
}
|
||||
|
Reference in New Issue
Block a user