[gdb/tdep] Fix gdb.base/readnever.exp on s390x
[binutils-gdb.git] / gdb / features / loongarch / fpu.c
blob183ed54989f8b7fd36149815f3df87f4a29be09b
1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
2 Original: fpu.xml */
4 #include "gdbsupport/tdesc.h"
6 static int
7 create_feature_loongarch_fpu (struct target_desc *result, long regnum)
9 struct tdesc_feature *feature;
11 feature = tdesc_create_feature (result, "org.gnu.gdb.loongarch.fpu");
12 tdesc_type_with_fields *type_with_fields;
13 type_with_fields = tdesc_create_union (feature, "fputype");
14 tdesc_type *field_type;
15 field_type = tdesc_named_type (feature, "ieee_single");
16 tdesc_add_field (type_with_fields, "f", field_type);
17 field_type = tdesc_named_type (feature, "ieee_double");
18 tdesc_add_field (type_with_fields, "d", field_type);
20 tdesc_create_reg (feature, "f0", regnum++, 1, "float", 64, "fputype");
21 tdesc_create_reg (feature, "f1", regnum++, 1, "float", 64, "fputype");
22 tdesc_create_reg (feature, "f2", regnum++, 1, "float", 64, "fputype");
23 tdesc_create_reg (feature, "f3", regnum++, 1, "float", 64, "fputype");
24 tdesc_create_reg (feature, "f4", regnum++, 1, "float", 64, "fputype");
25 tdesc_create_reg (feature, "f5", regnum++, 1, "float", 64, "fputype");
26 tdesc_create_reg (feature, "f6", regnum++, 1, "float", 64, "fputype");
27 tdesc_create_reg (feature, "f7", regnum++, 1, "float", 64, "fputype");
28 tdesc_create_reg (feature, "f8", regnum++, 1, "float", 64, "fputype");
29 tdesc_create_reg (feature, "f9", regnum++, 1, "float", 64, "fputype");
30 tdesc_create_reg (feature, "f10", regnum++, 1, "float", 64, "fputype");
31 tdesc_create_reg (feature, "f11", regnum++, 1, "float", 64, "fputype");
32 tdesc_create_reg (feature, "f12", regnum++, 1, "float", 64, "fputype");
33 tdesc_create_reg (feature, "f13", regnum++, 1, "float", 64, "fputype");
34 tdesc_create_reg (feature, "f14", regnum++, 1, "float", 64, "fputype");
35 tdesc_create_reg (feature, "f15", regnum++, 1, "float", 64, "fputype");
36 tdesc_create_reg (feature, "f16", regnum++, 1, "float", 64, "fputype");
37 tdesc_create_reg (feature, "f17", regnum++, 1, "float", 64, "fputype");
38 tdesc_create_reg (feature, "f18", regnum++, 1, "float", 64, "fputype");
39 tdesc_create_reg (feature, "f19", regnum++, 1, "float", 64, "fputype");
40 tdesc_create_reg (feature, "f20", regnum++, 1, "float", 64, "fputype");
41 tdesc_create_reg (feature, "f21", regnum++, 1, "float", 64, "fputype");
42 tdesc_create_reg (feature, "f22", regnum++, 1, "float", 64, "fputype");
43 tdesc_create_reg (feature, "f23", regnum++, 1, "float", 64, "fputype");
44 tdesc_create_reg (feature, "f24", regnum++, 1, "float", 64, "fputype");
45 tdesc_create_reg (feature, "f25", regnum++, 1, "float", 64, "fputype");
46 tdesc_create_reg (feature, "f26", regnum++, 1, "float", 64, "fputype");
47 tdesc_create_reg (feature, "f27", regnum++, 1, "float", 64, "fputype");
48 tdesc_create_reg (feature, "f28", regnum++, 1, "float", 64, "fputype");
49 tdesc_create_reg (feature, "f29", regnum++, 1, "float", 64, "fputype");
50 tdesc_create_reg (feature, "f30", regnum++, 1, "float", 64, "fputype");
51 tdesc_create_reg (feature, "f31", regnum++, 1, "float", 64, "fputype");
52 tdesc_create_reg (feature, "fcc0", regnum++, 1, "float", 8, "uint8");
53 tdesc_create_reg (feature, "fcc1", regnum++, 1, "float", 8, "uint8");
54 tdesc_create_reg (feature, "fcc2", regnum++, 1, "float", 8, "uint8");
55 tdesc_create_reg (feature, "fcc3", regnum++, 1, "float", 8, "uint8");
56 tdesc_create_reg (feature, "fcc4", regnum++, 1, "float", 8, "uint8");
57 tdesc_create_reg (feature, "fcc5", regnum++, 1, "float", 8, "uint8");
58 tdesc_create_reg (feature, "fcc6", regnum++, 1, "float", 8, "uint8");
59 tdesc_create_reg (feature, "fcc7", regnum++, 1, "float", 8, "uint8");
60 tdesc_create_reg (feature, "fcsr", regnum++, 1, "float", 32, "uint32");
61 return regnum;