Commit 78c98bf2 by Christophe Lyon

Commit forgotten testecase for pr71727.

From-SVN: r253251
parent 5c561fa9
/* { dg-do compile } */
/* { dg-options "-mstrict-align -O3" } */
unsigned char foo(const unsigned char *buffer, unsigned int length)
{
unsigned char sum;
unsigned int count;
for (sum = 0, count = 0; count < length; count++) {
sum = (unsigned char) (sum + *(buffer + count));
}
return sum;
}
/* { dg-final { scan-assembler-times "and\tw\[0-9\]+, w\[0-9\]+, 15" 1 } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment