aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/asm-hard-reg-2.c
blob: 7434063646ce13269042ff160c42a267413758d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -march=armv8-a+sve" } */

/* Test register pairs.  */

#include <arm_sve.h>

void
test (void)
{
  svuint32x2_t x, y;
  svuint32x4_t z;

  __asm__ __volatile__ ("" : "={z4}" (x), "={z6}" (y));
  __asm__ __volatile__ ("" : "={z5}" (x), "={z6}" (y));  /* { dg-error "multiple outputs to hard register: v6" } */
  __asm__ __volatile__ ("" : "={z4}" (z), "={z6}" (y));  /* { dg-error "multiple outputs to hard register: v6" } */
}