gcc/testsuite/gcc.target/i386/testnot-2.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | int foo(int x, int y) |
| 5 | { |
| 6 | return (x & y) == y; |
| 7 | } |
| 8 | |
| 9 | int foos(short x, short y) |
| 10 | { |
| 11 | return (x & y) == y; |
| 12 | } |
| 13 | |
| 14 | int fooc(char x, char y) |
| 15 | { |
| 16 | return (x & y) == y; |
| 17 | } |
| 18 | |
| 19 | int fool(long long x, long long y) |
| 20 | { |
| 21 | return (x & y) == y; |
| 22 | } |
| 23 | |
| 24 | /* { dg-final { scan-assembler-not "cmp" } } */ |