diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-11-20 10:37:59 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-11-20 10:44:31 +0100 |
commit | 509b470dcee9795887a60ddb32ab454f22e74411 (patch) | |
tree | 43976a234b5f9cbedde25573c5e4bed681d96070 /gcc/tree-vect-loop.cc | |
parent | f25a5b199a0ebd4695466e665e49041339f0c6a7 (diff) | |
download | gcc-509b470dcee9795887a60ddb32ab454f22e74411.zip gcc-509b470dcee9795887a60ddb32ab454f22e74411.tar.gz gcc-509b470dcee9795887a60ddb32ab454f22e74411.tar.bz2 |
c, c++: Add new value for vector types for __builtin_classify_type
While filing a clang request to return 18 on _BitInts for
__builtin_classify_type instead of -1 they return currently, I've
noticed that we return -1 for vector types. Initially I wanted to change
behavior just for __builtin_classify_type (type) form, as that is new in
GCC 14 and we've returned for 20+ years -1 for __builtin_classify_type
on vector expressions, but I was convinved otherwise, so this changes
the behavior even for that and now returns 19.
2023-11-20 Jakub Jelinek <jakub@redhat.com>
gcc/
* typeclass.h (enum type_class): Add vector_type_class.
* builtins.cc (type_to_class): Return vector_type_class for
VECTOR_TYPE.
* doc/extend.texi (__builtin_classify_type): Mention bit-precise
integer types and vector types.
gcc/testsuite/
* c-c++-common/builtin-classify-type-1.c (main): Add tests for vector
types.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions