aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/acle/mcrr.c
blob: dcc223c713d8aabb1d51c1d3bb3a7ed817a4be30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Test the mcrr ACLE intrinsic.  */

/* { dg-do assemble } */
/* { dg-options "-save-temps" } */
/* { dg-require-effective-target arm_coproc3_ok } */

#include "arm_acle.h"

void test_mcrr (uint64_t a)
{
  a += 77;
  __arm_mcrr (10, 5, a, 3);
}

/* { dg-final { scan-assembler "add\[^\n\]*#77\n" } } */
/* { dg-final { scan-assembler "mcrr\tp10, #5, r\[r0-9\]*, r\[r0-9\]*, CR3\n" } } */