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. */
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
];
14 unsigned short uh_c
[N
];
19 for (int i
= 0; i
< N
; i
++)
20 sh_c
[i
] = ((sLL
) si_a
[i
] * (sLL
) si_b
[i
]) >> 32;
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" } } */