* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / cris-peep2-andu1.c
blob2e546e6256d687575de2bf0a9cf4ce441d3fdc1d
1 /* { dg-do compile { target cris-*-* } } */
2 /* { dg-final { scan-assembler-not "and.d " } } */
3 /* { dg-final { scan-assembler-not "move.d " } } */
4 /* { dg-final { scan-assembler "cLear.b" } } */
5 /* { dg-final { scan-assembler "movu.b" } } */
6 /* { dg-final { scan-assembler "and.b" } } */
7 /* { dg-final { scan-assembler "movu.w" } } */
8 /* { dg-final { scan-assembler "and.w" } } */
9 /* { dg-final { scan-assembler "andq" } } */
10 /* { dg-options "-O2" } */
12 /* Test the "andu" peephole2 trivially, memory operand. */
14 int
15 clearb (int x, int *y)
17 return *y & 0xff00;
20 int
21 andb (int x, int *y)
23 return *y & 0x3f;
26 int
27 andw (int x, int *y)
29 return *y & 0xfff;
32 int
33 andq (int x, int *y)
35 return *y & 0xf0;
38 int
39 andq2 (int x, int *y)
41 return *y & 0xfff0;