summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/extract-2.c
blob: 3bb5f154c4e51d2b8105b31e908c2cdbbeb37648 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -mtune=generic" } */

int
foo (unsigned char x, unsigned char y)
{
   return (x % y) > 4;
}

/* { dg-final { scan-assembler-times "cmp\[b\]?\[^\\n\]*%\[a-d\]h" 1 } } */
/* { dg-final { scan-assembler-not "cmp\[b\]?\[^\\n\]*%\[a-d\]l" } } */