1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
4 #include "gdbsupport/tdesc.h"
7 create_feature_loongarch_lasx (struct target_desc
*result
, long regnum
)
9 struct tdesc_feature
*feature
;
11 feature
= tdesc_create_feature (result
, "org.gnu.gdb.loongarch.lasx");
12 tdesc_type
*element_type
;
13 element_type
= tdesc_named_type (feature
, "ieee_single");
14 tdesc_create_vector (feature
, "v8f32", element_type
, 8);
16 element_type
= tdesc_named_type (feature
, "ieee_double");
17 tdesc_create_vector (feature
, "v4f64", element_type
, 4);
19 element_type
= tdesc_named_type (feature
, "int8");
20 tdesc_create_vector (feature
, "v32i8", element_type
, 32);
22 element_type
= tdesc_named_type (feature
, "int16");
23 tdesc_create_vector (feature
, "v16i16", element_type
, 16);
25 element_type
= tdesc_named_type (feature
, "int32");
26 tdesc_create_vector (feature
, "v8i32", element_type
, 8);
28 element_type
= tdesc_named_type (feature
, "int64");
29 tdesc_create_vector (feature
, "v4i64", element_type
, 4);
31 element_type
= tdesc_named_type (feature
, "uint128");
32 tdesc_create_vector (feature
, "v2ui128", element_type
, 2);
34 tdesc_type_with_fields
*type_with_fields
;
35 type_with_fields
= tdesc_create_union (feature
, "lasxv");
36 tdesc_type
*field_type
;
37 field_type
= tdesc_named_type (feature
, "v8f32");
38 tdesc_add_field (type_with_fields
, "v8_float", field_type
);
39 field_type
= tdesc_named_type (feature
, "v4f64");
40 tdesc_add_field (type_with_fields
, "v4_double", field_type
);
41 field_type
= tdesc_named_type (feature
, "v32i8");
42 tdesc_add_field (type_with_fields
, "v32_int8", field_type
);
43 field_type
= tdesc_named_type (feature
, "v16i16");
44 tdesc_add_field (type_with_fields
, "v16_int16", field_type
);
45 field_type
= tdesc_named_type (feature
, "v8i32");
46 tdesc_add_field (type_with_fields
, "v8_int32", field_type
);
47 field_type
= tdesc_named_type (feature
, "v4i64");
48 tdesc_add_field (type_with_fields
, "v4_int64", field_type
);
49 field_type
= tdesc_named_type (feature
, "v2ui128");
50 tdesc_add_field (type_with_fields
, "v2_uint128", field_type
);
52 tdesc_create_reg (feature
, "xr0", regnum
++, 1, "lasx", 256, "lasxv");
53 tdesc_create_reg (feature
, "xr1", regnum
++, 1, "lasx", 256, "lasxv");
54 tdesc_create_reg (feature
, "xr2", regnum
++, 1, "lasx", 256, "lasxv");
55 tdesc_create_reg (feature
, "xr3", regnum
++, 1, "lasx", 256, "lasxv");
56 tdesc_create_reg (feature
, "xr4", regnum
++, 1, "lasx", 256, "lasxv");
57 tdesc_create_reg (feature
, "xr5", regnum
++, 1, "lasx", 256, "lasxv");
58 tdesc_create_reg (feature
, "xr6", regnum
++, 1, "lasx", 256, "lasxv");
59 tdesc_create_reg (feature
, "xr7", regnum
++, 1, "lasx", 256, "lasxv");
60 tdesc_create_reg (feature
, "xr8", regnum
++, 1, "lasx", 256, "lasxv");
61 tdesc_create_reg (feature
, "xr9", regnum
++, 1, "lasx", 256, "lasxv");
62 tdesc_create_reg (feature
, "xr10", regnum
++, 1, "lasx", 256, "lasxv");
63 tdesc_create_reg (feature
, "xr11", regnum
++, 1, "lasx", 256, "lasxv");
64 tdesc_create_reg (feature
, "xr12", regnum
++, 1, "lasx", 256, "lasxv");
65 tdesc_create_reg (feature
, "xr13", regnum
++, 1, "lasx", 256, "lasxv");
66 tdesc_create_reg (feature
, "xr14", regnum
++, 1, "lasx", 256, "lasxv");
67 tdesc_create_reg (feature
, "xr15", regnum
++, 1, "lasx", 256, "lasxv");
68 tdesc_create_reg (feature
, "xr16", regnum
++, 1, "lasx", 256, "lasxv");
69 tdesc_create_reg (feature
, "xr17", regnum
++, 1, "lasx", 256, "lasxv");
70 tdesc_create_reg (feature
, "xr18", regnum
++, 1, "lasx", 256, "lasxv");
71 tdesc_create_reg (feature
, "xr19", regnum
++, 1, "lasx", 256, "lasxv");
72 tdesc_create_reg (feature
, "xr20", regnum
++, 1, "lasx", 256, "lasxv");
73 tdesc_create_reg (feature
, "xr21", regnum
++, 1, "lasx", 256, "lasxv");
74 tdesc_create_reg (feature
, "xr22", regnum
++, 1, "lasx", 256, "lasxv");
75 tdesc_create_reg (feature
, "xr23", regnum
++, 1, "lasx", 256, "lasxv");
76 tdesc_create_reg (feature
, "xr24", regnum
++, 1, "lasx", 256, "lasxv");
77 tdesc_create_reg (feature
, "xr25", regnum
++, 1, "lasx", 256, "lasxv");
78 tdesc_create_reg (feature
, "xr26", regnum
++, 1, "lasx", 256, "lasxv");
79 tdesc_create_reg (feature
, "xr27", regnum
++, 1, "lasx", 256, "lasxv");
80 tdesc_create_reg (feature
, "xr28", regnum
++, 1, "lasx", 256, "lasxv");
81 tdesc_create_reg (feature
, "xr29", regnum
++, 1, "lasx", 256, "lasxv");
82 tdesc_create_reg (feature
, "xr30", regnum
++, 1, "lasx", 256, "lasxv");
83 tdesc_create_reg (feature
, "xr31", regnum
++, 1, "lasx", 256, "lasxv");