X86: Let microops force folding an index into the high byte of a register.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 5 Aug 2009 10:03:07 +0000 (03:03 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 5 Aug 2009 10:03:07 +0000 (03:03 -0700)
src/arch/x86/isa/microasm.isa

index 0cc72bf7b8dd97a21e970191b0b3ffbb7c7b8374..c6f5e9cddc7dc64a02a0d64e43ebf0b45c0cc195 100644 (file)
@@ -151,6 +151,10 @@ let {{
         assembler.symbols["r%s" % reg] = \
             regIdx("INTREG_R%s" % reg.upper())
 
+    for reg in ('ah', 'bh', 'ch', 'dh'):
+        assembler.symbols[reg] = \
+            regIdx("INTREG_FOLDED(INTREG_%s, IntFoldBit)" % reg.upper())
+
     for reg in range(16):
         assembler.symbols["cr%d" % reg] = regIdx("MISCREG_CR%d" % reg)