Add Intel encodings for ifcmp_sp.

Also generate an Into<RegUnit> implementation for the RU enums.
This commit is contained in:
Jakob Stoklund Olesen
2018-02-09 14:32:29 -08:00
parent 73c4c356c9
commit 788a78caf4
9 changed files with 34 additions and 8 deletions

View File

@@ -96,6 +96,9 @@ def gen_isa(isa, fmt):
with fmt.indented('pub enum RU {', '}'):
for regbank in isa.regbanks:
gen_regbank_units(regbank, fmt)
with fmt.indented('impl Into<RegUnit> for RU {', '}'):
with fmt.indented('fn into(self) -> RegUnit {', '}'):
fmt.line('self as RegUnit')
def generate(isas, out_dir):