c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-sub-int128.c
bloba75a3a5a0fc431a24be9d72646b21b1ec573e72a
1 /* Verify that overloaded built-ins for vec_sub with __int128
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-options "-maltivec -mvsx" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
7 /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
8 /* { dg-require-effective-target powerpc_vsx } */
9 /* { dg-require-effective-target int128 } */
11 #include "altivec.h"
13 vector signed __int128
14 test1 (vector signed __int128 x, vector signed __int128 y)
16 return vec_sub (x, y);
19 vector unsigned __int128
20 test2 (vector unsigned __int128 x, vector unsigned __int128 y)
22 return vec_sub (x, y);
25 /* { dg-final { scan-assembler-times "vsubuqm" 2 } } */