OSDN Git Service

2012-01-03 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr45416.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 int foo(long long a)
5 {
6    if (a & (long long) 0x400)
7       return 1;
8    return 0;
9 }
10
11 /* { dg-final { scan-assembler "andl" { target i?86-*-linux* x86_64-*-linux* } } } " */
12 /* { dg-final { scan-assembler-not "setne" { target i?86-*-linux* x86_64-*-linux* } } }" */
13 /* { dg-final { scan-assembler "and" { target arm*-*-* } } }" */
14 /* { dg-final { scan-assembler-not "moveq" { target arm*-*-* } } }" */