1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-skip-if "" { powerpc*-*-aix* } } */
5 /* { dg-options "-mcpu=power9" } */
7 /* This test should succeed on both 32- and 64-bit configurations. */
10 __vector
unsigned char
11 doAbsoluteDifferenceUnsignedChar (__vector
unsigned char *p
,
12 __vector
unsigned char *q
)
14 __vector
unsigned char source_1
, source_2
;
15 __vector
unsigned char result
;
20 result
= __builtin_vec_vadu (source_1
, source_2
);
24 /* { dg-final { scan-assembler "vabsdub" } } */