Skip to content

Commit 96055a8

Browse files
mjcharnemarkcharney
authored andcommitted
enc2gen: expanding some reg opnd names
* 'mm' for mmx, was 'n' * 'cr' for control regs, was 'c' * 'dr' for debug regs, was 'd' * 'seg' for segment regs, was 's' Change-Id: Ic00e51bbb2894661d7d6869f7c6e1b844167e783 (cherry picked from commit c607cba3d76237df4fe0a786c834689fd256ac96)
1 parent c564fe8 commit 96055a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pysrc/enc2gen.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1717,15 +1717,16 @@ def _translate_width_z(w):
17171717
elif op_x87(op):
17181718
s.append('x87')
17191719
elif op_mmx(op):
1720-
s.append('n') #FIXME something else?
1720+
s.append('mm') # FIXME: or "mmx"? "mm" is shorter.
17211721
elif op_cr(op):
1722-
s.append('c')
1722+
s.append('cr')
17231723
elif op_dr(op):
1724-
s.append('d')
1724+
s.append('dr')
17251725
elif op_seg(op):
1726-
s.append('s')
1726+
s.append('seg')
17271727
elif op_implicit_specific_reg(op):
17281728
s.append('r') # FIXME something else?
1729+
die("SHOULD NOT REACH HERE")
17291730
elif op.name in ['REG0','REG1'] and op_luf(op,'OrAX'):
17301731
if using_width:
17311732
s.append( _translate_rax_name(using_width) )

0 commit comments

Comments
 (0)