Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-add-7.c
blob71de0b6a22b92e047c697a27348caac151a53f59
1 /* Verify that overloaded built-ins for vec_add with __int128
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-require-effective-target int128 } */
7 /* { dg-options "-maltivec -mvsx -mpower8-vector" } */
8 /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
10 #include "altivec.h"
12 vector signed __int128
13 test1 (vector signed __int128 x, vector signed __int128 y)
15 return vec_add (x, y);
18 vector unsigned __int128
19 test2 (vector unsigned __int128 x, vector unsigned __int128 y)
21 return vec_add (x, y);
24 /* { dg-final { scan-assembler-times "vadduqm" 2 } } */