comparison gcc/testsuite/c-c++-common/builtin-convertvector-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 typedef int v8si __attribute__((vector_size (8 * sizeof (int))));
2 typedef long long v4di __attribute__((vector_size (4 * sizeof (long long))));
3
4 void
5 foo (v8si *x, v4di *y, int z)
6 {
7 __builtin_convertvector (*y, v8si); /* { dg-error "number of elements of the first argument vector and the second argument vector type should be the same" } */
8 __builtin_convertvector (*x, v4di); /* { dg-error "number of elements of the first argument vector and the second argument vector type should be the same" } */
9 __builtin_convertvector (*x, int); /* { dg-error "second argument must be an integer or floating vector type" } */
10 __builtin_convertvector (z, v4di); /* { dg-error "first argument must be an integer or floating vector" } */
11 __builtin_convertvector (); /* { dg-error "expected" } */
12 __builtin_convertvector (*x); /* { dg-error "expected" } */
13 __builtin_convertvector (*x, *y); /* { dg-error "expected" } */
14 __builtin_convertvector (*x, v8si, 1);/* { dg-error "expected" } */
15 }