1/* This file is part of GDB, the GNU debugger.
2
3   Copyright 2008-2020 Free Software Foundation, Inc.
4
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License as published by
7   the Free Software Foundation; either version 3 of the License, or
8   (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
17
18int
19main (void)
20{
21  char buf0[] = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
22                 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
23  char buf1[] = {0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
24                 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f};
25  long val;
26  void *addr;
27
28  addr = &buf0[0];
29  __asm __volatile ("ldr %x0, [%1]\n\t"
30		    "ldr q0, [%x0]"
31		    : "=r" (val)
32		    : "r" (&addr)
33		    : "q0" );
34
35  addr = &buf1[0];
36  __asm __volatile ("ldr %x0, [%1]\n\t"
37		    "ldr q1, [%x0]"
38		    : "=r" (val)
39		    : "r" (&addr)
40		    : "q1" );
41
42  return 1;
43}
44
45