[testsuite/ARM] Fix coprocessor intrinsic test failures on ARMv8-A
[official-gcc.git] / gcc / testsuite / gcc.target / arm / acle / mcrr.c
blob468dd96fb9b6a726aaa235172340a904b4e420d8
1 /* Test the mcrr ACLE intrinsic. */
3 /* { dg-do assemble } */
4 /* { dg-options "-save-temps" } */
5 /* { dg-require-effective-target arm_coproc3_ok } */
7 #include "arm_acle.h"
8 #if (__ARM_ARCH < 8 || !defined (__ARM_ARCH_ISA_ARM)) \
9 && (__ARM_FEATURE_COPROC & 0x4) == 0
10 #error "__ARM_FEATURE_COPROC does not have correct feature bits set"
11 #endif
13 void test_mcrr (uint64_t a)
15 a += 77;
16 __arm_mcrr (10, 5, a, 3);
19 /* { dg-final { scan-assembler "add\[^\n\]*#77\n" } } */
20 /* { dg-final { scan-assembler "mcrr\tp10, #5, r\[r0-9\]*, r\[r0-9\]*, CR3\n" } } */