c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vadsdu-1.c
blob03e6a11757c29d738608dade18bcbba607016593
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
3 /* { dg-require-effective-target powerpc_vsx } */
5 /* This test should succeed on both 32- and 64-bit configurations. */
6 #include <altivec.h>
8 __vector unsigned int
9 doAbsoluteDifferenceUnsignedIntMacro (__vector unsigned int *p,
10 __vector unsigned int *q)
12 __vector unsigned int result, source_1, source_2;
14 source_1 = *p;
15 source_2 = *q;
17 result = vec_absd (source_1, source_2);
18 return result;
21 /* { dg-final { scan-assembler "vabsduw" } } */