aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/testnot-2.c
blob: 52fdaf361dfd2ccde1a1d726bcf8627d1dfb010f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2" } */

int foo(int x, int y)
{
    return (x & y) == y;
}

int foos(short x, short y)
{
    return (x & y) == y;
}

int fooc(char x, char y)
{
    return (x & y) == y;
}

int fool(long long x, long long y)
{
    return (x & y) == y;
}

/* { dg-final { scan-assembler-not "cmp" } } */