1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
4 #include "gdbsupport/tdesc.h"
7 create_feature_loongarch_lsx (struct target_desc
*result
, long regnum
)
9 struct tdesc_feature
*feature
;
11 feature
= tdesc_create_feature (result
, "org.gnu.gdb.loongarch.lsx");
12 tdesc_type
*element_type
;
13 element_type
= tdesc_named_type (feature
, "ieee_single");
14 tdesc_create_vector (feature
, "v4f32", element_type
, 4);
16 element_type
= tdesc_named_type (feature
, "ieee_double");
17 tdesc_create_vector (feature
, "v2f64", element_type
, 2);
19 element_type
= tdesc_named_type (feature
, "int8");
20 tdesc_create_vector (feature
, "v16i8", element_type
, 16);
22 element_type
= tdesc_named_type (feature
, "int16");
23 tdesc_create_vector (feature
, "v8i16", element_type
, 8);
25 element_type
= tdesc_named_type (feature
, "int32");
26 tdesc_create_vector (feature
, "v4i32", element_type
, 4);
28 element_type
= tdesc_named_type (feature
, "int64");
29 tdesc_create_vector (feature
, "v2i64", element_type
, 2);
31 tdesc_type_with_fields
*type_with_fields
;
32 type_with_fields
= tdesc_create_union (feature
, "lsxv");
33 tdesc_type
*field_type
;
34 field_type
= tdesc_named_type (feature
, "v4f32");
35 tdesc_add_field (type_with_fields
, "v4_float", field_type
);
36 field_type
= tdesc_named_type (feature
, "v2f64");
37 tdesc_add_field (type_with_fields
, "v2_double", field_type
);
38 field_type
= tdesc_named_type (feature
, "v16i8");
39 tdesc_add_field (type_with_fields
, "v16_int8", field_type
);
40 field_type
= tdesc_named_type (feature
, "v8i16");
41 tdesc_add_field (type_with_fields
, "v8_int16", field_type
);
42 field_type
= tdesc_named_type (feature
, "v4i32");
43 tdesc_add_field (type_with_fields
, "v4_int32", field_type
);
44 field_type
= tdesc_named_type (feature
, "v2i64");
45 tdesc_add_field (type_with_fields
, "v2_int64", field_type
);
46 field_type
= tdesc_named_type (feature
, "uint128");
47 tdesc_add_field (type_with_fields
, "uint128", field_type
);
49 tdesc_create_reg (feature
, "vr0", regnum
++, 1, "lsx", 128, "lsxv");
50 tdesc_create_reg (feature
, "vr1", regnum
++, 1, "lsx", 128, "lsxv");
51 tdesc_create_reg (feature
, "vr2", regnum
++, 1, "lsx", 128, "lsxv");
52 tdesc_create_reg (feature
, "vr3", regnum
++, 1, "lsx", 128, "lsxv");
53 tdesc_create_reg (feature
, "vr4", regnum
++, 1, "lsx", 128, "lsxv");
54 tdesc_create_reg (feature
, "vr5", regnum
++, 1, "lsx", 128, "lsxv");
55 tdesc_create_reg (feature
, "vr6", regnum
++, 1, "lsx", 128, "lsxv");
56 tdesc_create_reg (feature
, "vr7", regnum
++, 1, "lsx", 128, "lsxv");
57 tdesc_create_reg (feature
, "vr8", regnum
++, 1, "lsx", 128, "lsxv");
58 tdesc_create_reg (feature
, "vr9", regnum
++, 1, "lsx", 128, "lsxv");
59 tdesc_create_reg (feature
, "vr10", regnum
++, 1, "lsx", 128, "lsxv");
60 tdesc_create_reg (feature
, "vr11", regnum
++, 1, "lsx", 128, "lsxv");
61 tdesc_create_reg (feature
, "vr12", regnum
++, 1, "lsx", 128, "lsxv");
62 tdesc_create_reg (feature
, "vr13", regnum
++, 1, "lsx", 128, "lsxv");
63 tdesc_create_reg (feature
, "vr14", regnum
++, 1, "lsx", 128, "lsxv");
64 tdesc_create_reg (feature
, "vr15", regnum
++, 1, "lsx", 128, "lsxv");
65 tdesc_create_reg (feature
, "vr16", regnum
++, 1, "lsx", 128, "lsxv");
66 tdesc_create_reg (feature
, "vr17", regnum
++, 1, "lsx", 128, "lsxv");
67 tdesc_create_reg (feature
, "vr18", regnum
++, 1, "lsx", 128, "lsxv");
68 tdesc_create_reg (feature
, "vr19", regnum
++, 1, "lsx", 128, "lsxv");
69 tdesc_create_reg (feature
, "vr20", regnum
++, 1, "lsx", 128, "lsxv");
70 tdesc_create_reg (feature
, "vr21", regnum
++, 1, "lsx", 128, "lsxv");
71 tdesc_create_reg (feature
, "vr22", regnum
++, 1, "lsx", 128, "lsxv");
72 tdesc_create_reg (feature
, "vr23", regnum
++, 1, "lsx", 128, "lsxv");
73 tdesc_create_reg (feature
, "vr24", regnum
++, 1, "lsx", 128, "lsxv");
74 tdesc_create_reg (feature
, "vr25", regnum
++, 1, "lsx", 128, "lsxv");
75 tdesc_create_reg (feature
, "vr26", regnum
++, 1, "lsx", 128, "lsxv");
76 tdesc_create_reg (feature
, "vr27", regnum
++, 1, "lsx", 128, "lsxv");
77 tdesc_create_reg (feature
, "vr28", regnum
++, 1, "lsx", 128, "lsxv");
78 tdesc_create_reg (feature
, "vr29", regnum
++, 1, "lsx", 128, "lsxv");
79 tdesc_create_reg (feature
, "vr30", regnum
++, 1, "lsx", 128, "lsxv");
80 tdesc_create_reg (feature
, "vr31", regnum
++, 1, "lsx", 128, "lsxv");