Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / builtin-bswap-1.c
blobc1e7740d14d3ca4e93a71e38b12f82c19791a204
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arch_v6t2_ok } */
3 /* { dg-add-options arm_arch_v6t2 } */
4 /* This test depends on if-conversion creating the conditional forms of
5 of the instructions. Add an -mtune option known to facilitate that. */
6 /* { dg-additional-options "-O2 -mtune=cortex-a53" } */
7 /* { dg-final { scan-assembler-not "orr\[ \t\]" } } */
8 /* { dg-final { scan-assembler-times "revsh\\t" 1 { target { arm_nothumb } } } } */
9 /* { dg-final { scan-assembler-times "revshne\\t" 1 { target { arm_nothumb } } } } */
10 /* { dg-final { scan-assembler-times "revsh\\t" 2 { target { ! arm_nothumb } } } } */
11 /* { dg-final { scan-assembler-times "rev16\\t" 1 { target { arm_nothumb } } } } */
12 /* { dg-final { scan-assembler-times "rev16ne\\t" 1 { target { arm_nothumb } } } } */
13 /* { dg-final { scan-assembler-times "rev16\\t" 2 { target { ! arm_nothumb } } } } */
14 /* { dg-final { scan-assembler-times "rev\\t" 2 { target { arm_nothumb } } } } */
15 /* { dg-final { scan-assembler-times "revne\\t" 2 { target { arm_nothumb } } } } */
16 /* { dg-final { scan-assembler-times "rev\\t" 4 { target { ! arm_nothumb } } } } */
18 #include "builtin-bswap.x"