Changeset 9493


Ignore:
Timestamp:
May 15, 2008, 11:18:37 PM (11 years ago)
Author:
gb
Message:

Use shorter encodings for movl/movw when the source operand is immediate,
as suggested in ticket:52. Keep the old/bigger encodings around, so
that vinsn templates can continue to reference instructions by ordinal.
(This was necessary during bootstrapping, but the old instructions -
which should never be matched - aren't used anymore.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711-perf/ccl/compiler/X86/x86-asm.lisp

    r6465 r9493  
    18781878   (def-x8664-opcode movl ((:reg32 :insert-modrm-reg) (:anymem :insert-memory))
    18791879     #x89 #o0 #x00)
     1880     
     1881   (def-x8664-opcode movl ((:imm32s :insert-imm32s) (:reg32 :insert-opcode-reg))
     1882     #xb8 nil #x00)
    18801883   (def-x8664-opcode movl ((:imm32s :insert-imm32s) (:reg32 :insert-modrm-rm))
    18811884     #xc7 #o300 #x00)
     
    18901893   (def-x8664-opcode movw ((:reg16 :insert-modrm-reg) (:anymem :insert-memory))
    18911894     #x89 #o0 #x00 #x66)
     1895   (def-x8664-opcode movw ((:imm16 :insert-imm16) (:reg16 :insert-opcode-reg))
     1896    #xb8 nil #x00 #x66)
    18921897   (def-x8664-opcode movw ((:imm16 :insert-imm16) (:reg16 :insert-modrm-rm))
    18931898     #xc7 #o300 #x00 #x66)
Note: See TracChangeset for help on using the changeset viewer.