Skip to content

Conversation

@yaozhongxiao
Copy link

GCC with version 10 onward does not treat intrinsic type(int8x16_t)
and __vector_type(vector_size(16) int8_t) are the same which lead
to is_vector_type failure.
Meanwhile, clang use attribute((neon_vector_type)) is not same
type with attribute((vector_size()))
Above all, is_vector_type should be judged by logical "or"
with the same<Tp, __vector_type> and same<Tp,__intrinsic_type>

ChangeLog:
  * experimental/bits/simd.h: refactor the is_vector_type taking
  vector_type and intrinsic_type as independent types

GCC with version 10 onward does not treat intrinsic type(int8x16_t)
and __vector_type(vector_size(16) int8_t) are the same which lead
to is_vector_type<Tp> failure.
Meanwhile, clang use __attribute__((neon_vector_type)) is not same
type with __attribute__((__vector_size__()))
Above all, is_vector_type should be judged by logical "or"
with the same<Tp, __vector_type> and same<Tp,__intrinsic_type>

ChangeLog:
  * experimental/bits/simd.h: refactor the is_vector_type taking
  vector_type and intrinsic_type as independent types
@yaozhongxiao
Copy link
Author

@mattkretz please help to confirm the issue and the solution, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant