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