aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr98079.c
blob: 8de0ec34dfa50e0e254942c9b78fe8aa0954148b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/98079 */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2 -march=pentium3" } */

typedef __UINT8_TYPE__ uint8_t;

uint8_t foo (uint8_t x)
{
  if (x & 0x80)
    x = -x;

  return x;
}