[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-add-7.c
blob38f1fcb6b9ab6048a9edf73fb5b3453934f9e326
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_vsx_ok } */
6 /* { dg-require-effective-target int128 } */
7 /* { dg-options "-maltivec -mvsx" } */
8 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
9 /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
11 #include "altivec.h"
13 vector signed __int128
14 test1 (vector signed __int128 x, vector signed __int128 y)
16 return vec_add (x, y);
19 vector unsigned __int128
20 test2 (vector unsigned __int128 x, vector unsigned __int128 y)
22 return vec_add (x, y);
25 /* { dg-final { scan-assembler-times "vadduqm" 2 } } */