| 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 } } */ |
| 9 |
/* { dg-final { scan-assembler-times "revshne\\t" 1 } } */ |
| 10 |
/* { dg-final { scan-assembler-times "rev16\\t" 1 } } */ |
| 11 |
/* { dg-final { scan-assembler-times "rev16ne\\t" 1 } } */ |
| 12 |
/* { dg-final { scan-assembler-times "rev\\t" 2 } } */ |
| 13 |
/* { dg-final { scan-assembler-times "revne\\t" 2 } } */ |
| 14 |
|
| 15 |
#include "builtin-bswap.x" |