4 <vector id="foo" type="int32" count="4"/>
5 <reg name="foo" bitsize="16" /> <!-- <reg name="foo" bitsize="16" type="int" regnum="0"/> -->
7 <feature name="def.xyz">
8 <struct id="my_struct">
9 <field name="field1" type="int8"/>
10 <field name="field2" type="int16"/>
11 <field name="field3" type="int8"/>
13 <struct id="bit_field" size="8">
14 <field name="bits1" start="0" end="3" type="int8"/>
15 <field name="bits2" start="4" end="6" type="int8"/>
16 <field name="bits3" start="7" end="7"/> <!-- <field name="bits3" start="7" end="7" type="bool"/> -->
18 <flags id="my_flags" size="8">
19 <field name="flg1" start="0" end="0"/> <!-- <field name="flg1" start="0" end="0" type="bool"/> -->
20 <field name="flg2" start="1" end="1"/> <!-- <field name="flg2" start="1" end="1" type="bool"/> -->
21 <field name="flg3" start="2" end="6"/> <!-- <field name="flg3" start="2" end="6" type="uint64"/> -->
22 <field name="flg4" start="7" end="7"/> <!-- <field name="flg4" start="7" end="7" type="bool"/> -->
24 <reg name="r1" bitsize="8" type="my_flags"/> <!-- <reg name="r1" bitsize="8" type="my_flags" regnum="1"/> -->
25 <reg name="r2" bitsize="8" type="bit_field"/> <!-- <reg name="r2" bitsize="8" type="bit_field" regnum="2"/> -->