[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-neg-int.p8.c
blob058ea0d9b11366f1b56c7d0b88a76c9e0e54676d
1 /* Verify that overloaded built-ins for vec_neg with int
2 inputs produce the right code when -mcpu=power8 is specified. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-O2 -mdejagnu-cpu=power8" } */
8 #include <altivec.h>
10 vector signed int
11 test1 (vector signed int x)
13 return vec_neg (x);
16 /* { dg-final { scan-assembler-times "xxspltib|vspltisw|vxor" 1 } } */
17 /* { dg-final { scan-assembler-times "vsubuwm" 1 } } */
18 /* { dg-final { scan-assembler-times "vmaxsw" 0 } } */