1 /* Test the cdp ACLE intrinsic.  */
2 
3 /* { dg-do assemble } */
4 /* { dg-options "-save-temps" } */
5 /* { dg-require-effective-target arm_coproc1_ok } */
6 
7 #include "arm_acle.h"
8 #if (__ARM_ARCH < 8 || !defined (__ARM_ARCH_ISA_ARM)) \
9     && (__ARM_FEATURE_COPROC & 0x1) == 0
10   #error "__ARM_FEATURE_COPROC does not have correct feature bits set"
11 #endif
12 
test_cdp(void)13 void test_cdp (void)
14 {
15   __arm_cdp (10, 1, 2, 3, 4, 5);
16 }
17 
18 /* { dg-final { scan-assembler "cdp\tp10, #1, CR2, CR3, CR4, #5\n" } } */
19