1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
5 /* This test should succeed on both 32- and 64-bit configurations. */
8 __vector
unsigned short
9 doAbsoluteDifferenceUnsignedShortMacro (__vector
unsigned short *p
,
10 __vector
unsigned short *q
)
12 __vector
unsigned short result
, source_1
, source_2
;
17 result
= vec_absd (source_1
, source_2
);
21 /* { dg-final { scan-assembler "vabsduh" } } */