]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.c
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.reverse / ppc_record_test_isa_2_06.c
CommitLineData
1bc0d95e
CL
1/* This testcase is part of GDB, the GNU debugger.
2
213516ef 3 Copyright 2012-2023 Free Software Foundation, Inc.
1bc0d95e
CL
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
18/* globals used for vector tests */
19static vector unsigned long vec_xb;
20static unsigned long ra, rb, rs;
21
22int
23main ()
24{
25 ra = 0xABCDEF012;
26 rb = 0;
27 rs = 0x012345678;
28
29 /* 9.0, 16.0, 25.0, 36.0 */
30 vec_xb = (vector unsigned long){0x4110000041800000, 0x41c8000042100000};
31
32 /* Test ISA 2.06 instructions. Load source into vs1, result of sqrt
33 put into vs0. */
34 ra = (unsigned long) & vec_xb; /* stop 1 */
35 __asm__ __volatile__ ("lxvd2x 1, %0, %1" :: "r" (ra ), "r" (rb));
36 __asm__ __volatile__ ("xvsqrtsp 0, 1");
37 ra = 0; /* stop 2 */
38}
39