1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -O1" } */
4 
5 #include <altivec.h>
6 
7 vector bool int
fetch_data(vector unsigned int * arg1_p,vector unsigned int * arg2_p)8 fetch_data (vector unsigned int *arg1_p, vector unsigned int *arg2_p)
9 {
10   vector unsigned int arg_1 = *arg1_p;
11   vector unsigned int arg_2 = *arg2_p;
12 
13   return vec_cmpne (arg_1, arg_2);
14 }
15 
16 /* { dg-final { scan-assembler "vcmpnew" } } */
17