Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-rotate-2.c
blob23598958ef2a25f6f9fad66ba28d5582031b9d2c
1 /* { dg-options "-O3 -mdejagnu-cpu=power8" } */
3 /* Check vectorizer can exploit vector rotation instructions on Power8, mainly
4 for the case rotation count is const number.
6 Check for vrld which is available on Power8 and above. */
8 #define N 256
9 unsigned long long sud[N], rud[N];
11 void
12 testULL ()
14 for (int i = 0; i < 256; ++i)
15 rud[i] = (sud[i] >> 8) | (sud[i] << (sizeof (sud[0]) * 8 - 8));
18 /* { dg-final { scan-assembler {\mvrld\M} } } */