PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / simd-6.c
blobca4aabc43b1f14e8d39e78178884138b1eda58e5
1 extern void abort (void);
2 extern int memcmp (const void *, const void *, __SIZE_TYPE__);
4 typedef unsigned char v8qi __attribute__((vector_size(8)));
6 v8qi foo(v8qi x, v8qi y)
8 return x * y;
11 int main()
13 v8qi a = { 1, 2, 3, 4, 5, 6, 7, 8 };
14 v8qi b = { 3, 3, 3, 3, 3, 3, 3, 3 };
15 v8qi c = { 3, 6, 9, 12, 15, 18, 21, 24 };
16 v8qi r;
18 r = foo (a, b);
19 if (memcmp (&r, &c, 8) != 0)
20 abort ();
21 return 0;