2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-30.c
blob99783191db9111cca3330b1d593aa1f18ace790d
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
5 #include <stdbool.h>
6 #include <altivec.h>
8 #define f0(type) void x0##type (vector bool type x) { }
9 f0 (int)
11 #define f1(v, type) void x1##type (v bool type x) { }
12 f1 (vector, int)
14 #define f2(b, type) void x2##type (vector b type x) { }
15 f2 (bool, int)
17 #define f3(v, b, type) void x3##type (v b type x) { }
18 f3 (vector, bool, int)
20 #define f4(v, b, type) void x4##type (v type b x) { }
21 f4 (vector, bool, int)
23 #define B bool
24 #define I int
25 #define BI bool int
26 #define VBI vector bool int
28 vector bool int a;
29 vector B int b;
30 vector B I c;
31 vector BI d;
32 VBI e;