GDB (xrefs)

64bit-sse.c
Go to the documentation of this file.
1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
2 Original: 64bit-sse.xml */
3
4 #include "arch/tdesc.h"
5
6 static int
7 create_feature_i386_64bit_sse (struct target_desc *result, long regnum)
8 {
9 struct tdesc_feature *feature;
10
11 feature = tdesc_create_feature (result, "org.gnu.gdb.i386.sse", "64bit-sse.xml");
12 tdesc_type *element_type;
13 element_type = tdesc_named_type (feature, "ieee_single");
14 tdesc_create_vector (feature, "v4f", element_type, 4);
15
16 element_type = tdesc_named_type (feature, "ieee_double");
17 tdesc_create_vector (feature, "v2d", element_type, 2);
18
19 element_type = tdesc_named_type (feature, "int8");
20 tdesc_create_vector (feature, "v16i8", element_type, 16);
21
22 element_type = tdesc_named_type (feature, "int16");
23 tdesc_create_vector (feature, "v8i16", element_type, 8);
24
25 element_type = tdesc_named_type (feature, "int32");
26 tdesc_create_vector (feature, "v4i32", element_type, 4);
27
28 element_type = tdesc_named_type (feature, "int64");
29 tdesc_create_vector (feature, "v2i64", element_type, 2);
30
31 tdesc_type_with_fields *type_with_fields;
32 type_with_fields = tdesc_create_union (feature, "vec128");
33 tdesc_type *field_type;
34 field_type = tdesc_named_type (feature, "v4f");
35 tdesc_add_field (type_with_fields, "v4_float", field_type);
36 field_type = tdesc_named_type (feature, "v2d");
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);
48
49 type_with_fields = tdesc_create_flags (feature, "i386_mxcsr", 4);
50 tdesc_add_flag (type_with_fields, 0, "IE");
51 tdesc_add_flag (type_with_fields, 1, "DE");
52 tdesc_add_flag (type_with_fields, 2, "ZE");
53 tdesc_add_flag (type_with_fields, 3, "OE");
54 tdesc_add_flag (type_with_fields, 4, "UE");
55 tdesc_add_flag (type_with_fields, 5, "PE");
56 tdesc_add_flag (type_with_fields, 6, "DAZ");
57 tdesc_add_flag (type_with_fields, 7, "IM");
58 tdesc_add_flag (type_with_fields, 8, "DM");
59 tdesc_add_flag (type_with_fields, 9, "ZM");
60 tdesc_add_flag (type_with_fields, 10, "OM");
61 tdesc_add_flag (type_with_fields, 11, "UM");
62 tdesc_add_flag (type_with_fields, 12, "PM");
63 tdesc_add_flag (type_with_fields, 15, "FZ");
64
65 regnum = 40;
66 tdesc_create_reg (feature, "xmm0", regnum++, 1, NULL, 128, "vec128");
67 tdesc_create_reg (feature, "xmm1", regnum++, 1, NULL, 128, "vec128");
68 tdesc_create_reg (feature, "xmm2", regnum++, 1, NULL, 128, "vec128");
69 tdesc_create_reg (feature, "xmm3", regnum++, 1, NULL, 128, "vec128");
70 tdesc_create_reg (feature, "xmm4", regnum++, 1, NULL, 128, "vec128");
71 tdesc_create_reg (feature, "xmm5", regnum++, 1, NULL, 128, "vec128");
72 tdesc_create_reg (feature, "xmm6", regnum++, 1, NULL, 128, "vec128");
73 tdesc_create_reg (feature, "xmm7", regnum++, 1, NULL, 128, "vec128");
74 tdesc_create_reg (feature, "xmm8", regnum++, 1, NULL, 128, "vec128");
75 tdesc_create_reg (feature, "xmm9", regnum++, 1, NULL, 128, "vec128");
76 tdesc_create_reg (feature, "xmm10", regnum++, 1, NULL, 128, "vec128");
77 tdesc_create_reg (feature, "xmm11", regnum++, 1, NULL, 128, "vec128");
78 tdesc_create_reg (feature, "xmm12", regnum++, 1, NULL, 128, "vec128");
79 tdesc_create_reg (feature, "xmm13", regnum++, 1, NULL, 128, "vec128");
80 tdesc_create_reg (feature, "xmm14", regnum++, 1, NULL, 128, "vec128");
81 tdesc_create_reg (feature, "xmm15", regnum++, 1, NULL, 128, "vec128");
82 tdesc_create_reg (feature, "mxcsr", regnum++, 1, "vector", 32, "i386_mxcsr");
83 return regnum;
84 }
tdesc_type_with_fields
Definition: target-descriptions.c:355
tdesc_add_flag
void tdesc_add_flag(tdesc_type_with_fields *type, int start, const char *flag_name)
Definition: target-descriptions.c:1578
create_feature_i386_64bit_sse
static int create_feature_i386_64bit_sse(struct target_desc *result, long regnum)
Definition: 64bit-sse.c:7
tdesc_create_reg
void tdesc_create_reg(struct tdesc_feature *feature, const char *name, int regnum, int save_restore, const char *group, int bitsize, const char *type)
Definition: target-descriptions.c:1448
tdesc_type
Definition: target-descriptions.c:201
tdesc_feature
Definition: target-descriptions.c:516
regnum
int regnum
Definition: aarch64-tdep.c:77
tdesc_create_union
tdesc_type_with_fields * tdesc_create_union(struct tdesc_feature *feature, const char *name)
Definition: target-descriptions.c:1495
target_desc
Definition: target-descriptions.c:591
tdesc_create_feature
struct tdesc_feature * tdesc_create_feature(struct target_desc *tdesc, const char *name, const char *xml=nullptr)
Definition: target-descriptions.c:1602
tdesc_create_vector
struct tdesc_type * tdesc_create_vector(struct tdesc_feature *feature, const char *name, struct tdesc_type *field_type, int count)
Definition: target-descriptions.c:1461
tdesc_named_type
struct tdesc_type * tdesc_named_type(const struct tdesc_feature *feature, const char *id)
Definition: target-descriptions.c:997
tdesc_add_field
void tdesc_add_field(tdesc_type_with_fields *type, const char *field_name, struct tdesc_type *field_type)
Definition: target-descriptions.c:1535
tdesc_create_flags
tdesc_type_with_fields * tdesc_create_flags(struct tdesc_feature *feature, const char *name, int size)
Definition: target-descriptions.c:1507
tdesc.h