aarch64: remove falkor-tag-collision-avoidance pass
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr101596-2.c
blob5caa7ce4189ac39f3f3e39136470a68b5d275b61
1 /* { dg-require-effective-target power10_ok } */
2 /* { dg-options "-mdejagnu-cpu=power10 -O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */
4 /* Check vect_recog_mulhs_pattern can be detected with shift count 32. */
6 #define N 128
8 typedef signed long long sLL;
9 typedef unsigned long long uLL;
11 signed int si_a[N], si_b[N];
12 unsigned int ui_a[N], ui_b[N];
13 signed short sh_c[N];
14 unsigned short uh_c[N];
16 void
17 test1 ()
19 for (int i = 0; i < N; i++)
20 sh_c[i] = ((sLL) si_a[i] * (sLL) si_b[i]) >> 32;
23 void
24 test2 ()
26 for (int i = 0; i < N; i++)
27 uh_c[i] = ((uLL) ui_a[i] * (uLL) ui_b[i]) >> 32;
30 /* { dg-final { scan-tree-dump-times "vect_recog_mulhs_pattern: detected" 2 "vect" } } */