PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr53712.c
blob394afc566b91ac516682e0172cf43fe620a2a908
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msse4.2" } */
4 typedef char v16qi __attribute__ ((__vector_size__ (16)));
6 int test (const char *s1, const char *s2)
8 v16qi s1chars = __builtin_ia32_loaddqu ((const char *) s2);
9 v16qi s2chars = __builtin_ia32_loaddqu ((const char *) s1);
10 return __builtin_ia32_pcmpistri128 (s1chars, s2chars, 0);
13 /* { dg-final { scan-assembler-times "movdqu|movups" 1 } } */