aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/torture/simd-abi-8.c
blob: 6463f6c50664c648d863b192301ac7be824d8bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */

#include <arm_neon.h>

void __attribute__ ((aarch64_vector_pcs)) f (void);

void
g (int64x2x4_t *ptr)
{
  register int64x2x4_t copy asm ("v8") = *ptr;
  int64x2x4_t save;
  asm volatile ("" : "=w" (save) : "0" (copy));
  f ();
  *ptr = save;
}

/* { dg-final { scan-assembler-times {\tld1\t} 1 } } */
/* { dg-final { scan-assembler-times {\tst1\t} 1 } } */