[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.base / floatn.c
blobf03f2de4f10950aa6cd93af5e7f1221849fd286d
1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2016-2019 Free Software Foundation, Inc.
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.
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.
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/>. */
18 #include <stdio.h>
19 #include <stdlib.h>
21 _Float32 f32;
22 _Float64 f64;
23 _Float128 f128;
24 _Float32x f32x;
25 _Float64x f64x;
27 _Complex _Float32 c32;
28 _Complex _Float64 c64;
29 _Complex _Float128 c128;
30 _Complex _Float32x c32x;
31 _Complex _Float64x c64x;
33 int main()
35 f32 = 1.5f32;
36 f64 = 2.25f64;
37 f128 = 3.375f128;
38 f32x = 10.5f32x;
39 f64x = 20.25f64x;
41 c32 = 1.5f32 + 1.0if;
42 c64 = 2.25f64 + 1.0if;
43 c128 = 3.375f128 + 1.0if;
44 c32x = 10.5f32x + 1.0if;
45 c64x = 20.25f64x + 1.0if;
47 return 0;