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. */
9 doAbsoluteDifferenceUnsigned (__vector
unsigned int *p
,
10 __vector
unsigned int *q
)
12 __vector
unsigned int source_1
, source_2
;
13 __vector
unsigned int ui_result
;
18 ui_result
= __builtin_vec_vaduw (source_1
, source_2
);
22 /* { dg-final { scan-assembler "vabsduw" } } */