1 /* { dg-do compile { target { powerpc*-*-* } } } */ 2 /* { dg-require-effective-target powerpc_p9vector_ok } */ 3 /* { dg-options "-mdejagnu-cpu=power9" } */ 4 5 #include <altivec.h> 6 7 int test_any_equal(vector bool long long * arg1_p,vector bool long long * arg2_p)8test_any_equal (vector bool long long *arg1_p, vector bool long long *arg2_p) 9 { 10 vector bool long long arg_1 = *arg1_p; 11 vector bool long long arg_2 = *arg2_p; 12 13 return vec_any_eq (arg_1, arg_2); 14 } 15 16 /* { dg-final { scan-assembler "vcmpequd." } } */ 17 /* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,27,1" } } */ 18