1 /* { dg-do compile } */
2 /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
4 #define vector(elcount, type) \
5 __attribute__((vector_size((elcount)*sizeof(type)))) type
8 foo (vector (4, int) x
, vector (4, float) y
)
12 vector (4, unsigned int) q4
;
16 r4
= x
> y
; /* { dg-error "comparing vectors with different element types" } */
17 r8
= (x
!= p4
); /* { dg-error "incompatible types when assigning to type" } */
18 r8
== r4
; /* { dg-error "comparing vectors with different number of elements" } */