* gcc.target/powerpc/fold-vec-add-1.c: Add dg-options -maltivec.
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-add-7.c
blob185a90340c6145b5579c9b00b8ddfc2bc1efd169
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-options "-maltivec -mvsx -mpower8-vector" } */
7 /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
9 #include "altivec.h"
11 vector signed __int128
12 test1 (vector signed __int128 x, vector signed __int128 y)
14 return vec_add (x, y);
17 vector unsigned __int128
18 test2 (vector unsigned __int128 x, vector unsigned __int128 y)
20 return vec_add (x, y);
23 /* { dg-final { scan-assembler-times "vadduqm" 2 } } */