1/* { dg-do compile } */ 2/* { dg-options "-w -Wno-psabi" } */ 3 4/* AVX512F and AVX512BW modes. */ 5typedef unsigned char V64QImode __attribute__((vector_size(64))); 6typedef unsigned short V32HImode __attribute__((vector_size(64))); 7typedef unsigned int V16SImode __attribute__((vector_size(64))); 8typedef unsigned long long V8DImode __attribute__((vector_size(64))); 9typedef float V16SFmode __attribute__((vector_size(64))); 10typedef double V8DFmode __attribute__((vector_size(64))); 11 12/* AVX and AVX2 modes. */ 13typedef unsigned char V32QImode __attribute__((vector_size(32))); 14typedef unsigned short V16HImode __attribute__((vector_size(32))); 15typedef unsigned int V8SImode __attribute__((vector_size(32))); 16typedef unsigned long long V4DImode __attribute__((vector_size(32))); 17typedef float V8SFmode __attribute__((vector_size(32))); 18typedef double V4DFmode __attribute__((vector_size(32))); 19 20/* SSE1 and SSE2 modes. */ 21typedef unsigned char V16QImode __attribute__((vector_size(16))); 22typedef unsigned short V8HImode __attribute__((vector_size(16))); 23typedef unsigned int V4SImode __attribute__((vector_size(16))); 24typedef unsigned long long V2DImode __attribute__((vector_size(16))); 25typedef float V4SFmode __attribute__((vector_size(16))); 26typedef double V2DFmode __attribute__((vector_size(16))); 27 28/* MMX and 3DNOW modes. */ 29typedef unsigned char V8QImode __attribute__((vector_size(8))); 30typedef unsigned short V4HImode __attribute__((vector_size(8))); 31typedef unsigned int V2SImode __attribute__((vector_size(8))); 32typedef float V2SFmode __attribute__((vector_size(8))); 33 34/* Test argument loading and unloading of each. */ 35#define TEST(TYPE) \ 36extern TYPE data_##TYPE; \ 37void r_##TYPE (TYPE x) { data_##TYPE = x; } \ 38void s_##TYPE (void) { r_##TYPE (data_##TYPE); } 39 40TEST(V64QImode) 41TEST(V32HImode) 42TEST(V16SImode) 43TEST(V8DImode) 44TEST(V16SFmode) 45TEST(V8DFmode) 46 47TEST(V32QImode) 48TEST(V16HImode) 49TEST(V8SImode) 50TEST(V4DImode) 51TEST(V8SFmode) 52TEST(V4DFmode) 53 54TEST(V16QImode) 55TEST(V8HImode) 56TEST(V4SImode) 57TEST(V2DImode) 58TEST(V4SFmode) 59TEST(V2DFmode) 60 61TEST(V8QImode) 62TEST(V4HImode) 63TEST(V2SImode) 64TEST(V2SFmode) 65