Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / andor-2.c
blobeacc7b1e449fcc9f5e4d422edd77c61c2d6de3ad
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune=generic" } */
4 int h(int x, int y)
6 if ((x >= 0 && x <= 1) && (y >= 0 && y <= 1))
7 return x && y;
8 else
9 return -1;
12 int g(int x, int y)
14 if ((x >= 0 && x <= 1) && (y >= 0 && y <= 1))
15 return x || y;
16 else
17 return -1;
20 int f(int x, int y)
22 if (x != 0 && x != 1)
23 return -2;
25 else
26 return !x;
29 /* { dg-final { scan-assembler-not "setne" } } */
30 /* { dg-final { scan-assembler-not "sete" } } */