aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/testnot-1.c
blob: 9ebcb5c7e996a8401c58b103289a3d495948dcac (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 } */
/* { dg-options "-O2" } */

int foo(int x)
{
    return (x & 1234) == 1234;
}

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

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

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

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