[PR81647][AARCH64] Fix handling of Unordered Comparisons in aarch64-simd.md
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr71727-2.c
blob58fe5bcd59c80ef78cca9e10f01b978023420e0f
1 /* { dg-do compile } */
2 /* { dg-options "-mstrict-align -O3" } */
4 #pragma GCC target "+nosve"
6 unsigned char foo(const unsigned char *buffer, unsigned int length)
8 unsigned char sum;
9 unsigned int count;
11 for (sum = 0, count = 0; count < length; count++) {
12 sum = (unsigned char) (sum + *(buffer + count));
15 return sum;
18 /* { dg-final { scan-assembler-times "and\tw\[0-9\]+, w\[0-9\]+, 15" 1 } } */