| 1 |
/* Test the mcrr ACLE intrinsic. */ |
| 2 |
|
| 3 |
/* { dg-do assemble } */ |
| 4 |
/* { dg-options "-save-temps" } */ |
| 5 |
/* { dg-require-effective-target arm_coproc3_ok } */ |
| 6 |
/* { dg-final { check-function-bodies "**" "" "" } } */ |
| 7 |
|
| 8 |
#include "arm_acle.h" |
| 9 |
#if (__ARM_ARCH < 8 || !defined (__ARM_ARCH_ISA_ARM)) \ |
| 10 |
&& (__ARM_FEATURE_COPROC & 0x4) == 0 |
| 11 |
#error "__ARM_FEATURE_COPROC does not have correct feature bits set" |
| 12 |
#endif |
| 13 |
|
| 14 |
void test_mcrr (uint64_t a) |
| 15 |
{ |
| 16 |
a += 77; |
| 17 |
__arm_mcrr (10, 5, a, 3); |
| 18 |
} |
| 19 |
/* |
| 20 |
** test_mcrr: |
| 21 |
** ... |
| 22 |
** add.*#77 |
| 23 |
** ... |
| 24 |
** mcrr p10, #5, r[0-9]+, r[0-9]+, CR3 |
| 25 |
** ... |
| 26 |
*/ |
| 27 |
|
| 28 |
void test_mcrr_pr121464 (uint64_t a) |
| 29 |
{ |
| 30 |
__arm_mcrr (7, 11, a, 0); |
| 31 |
} |
| 32 |
/* |
| 33 |
** test_mcrr_pr121464: |
| 34 |
** ... |
| 35 |
** mcrr p7, #11, r[0-9]+, r[0-9]+, CR0 |
| 36 |
** ... |
| 37 |
*/ |