Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-div-longlong.c
blob312e984d3cc07e99391a62529fcead1259c8e42f
1 /* Verify that overloaded built-ins for vec_div with long long
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-require-effective-target lp64 } */
7 /* { dg-options "-mvsx -O2" } */
9 #include <altivec.h>
11 vector signed long long
12 test3 (vector signed long long x, vector signed long long y)
14 return vec_div (x, y);
17 vector unsigned long long
18 test6 (vector unsigned long long x, vector unsigned long long y)
20 return vec_div (x, y);
22 /* { dg-final { scan-assembler-times {\mdivd\M} 2 } } */
23 /* { dg-final { scan-assembler-times {\mdivdu\M} 2 } } */