i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr98674.c
blob0f1b6cb060bec8c31f6c1f15023acb425a06d8c5
1 /* { dg-do compile } */
2 /* { dg-additional-options "-msse2" { target sse2 } } */
4 void swap(short *p, int cnt)
6 while (cnt-- > 0)
8 *p = ((*p << 8) & 0xFF00) | ((*p >> 8) & 0x00FF);
9 ++p;
13 /* Dependence analysis should not fail. */
14 /* { dg-final { scan-tree-dump "dependence distance == 0" "vect" } } */
15 /* On x86 with SSE2 we can vectorize this with psllw/psrlw. */
16 /* { dg-final { scan-tree-dump "loop vectorized" "vect" { target sse2 } } } */