libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vmx / 3b-15.c
blobec9cf2c5a0d506e524153d23f7738df2a98fffb1
1 #include "harness.h"
3 vector unsigned char
4 f (vector unsigned char a, vector unsigned char b, vector unsigned char c)
6 return vec_perm(a,b,c);
9 static void test()
11 check(vec_all_eq(f(((vector unsigned char){0,1,2,3,4,5,6,7,
12 8,9,10,11,12,13,14,15}),
13 ((vector unsigned char){70,71,72,73,74,75,76,77,
14 78,79,80,81,82,83,84,85}),
15 ((vector unsigned char){0x1,0x14,0x18,0x10,0x16,0x15,0x19,0x1a,
16 0x1c,0x1c,0x1c,0x12,0x8,0x1d,0x1b,0xe})),
17 ((vector unsigned char){1,74,78,70,76,75,79,80,82,82,82,72,8,83,81,14})),
18 "f");