Ignore:
Timestamp:
Aug 21, 2008, 8:41:12 AM (13 years ago)
Author:
gb
Message:

Support memory operands of the form (:rcontext displacment), which
will expand into either (@ (%seg rcontext) displacement) or
(@ displacement (% rcontext)) according to whether or not
"rcontext" is a segment register (most platforms) or a GPR (win64).

(I haven't tested this yet; am checking it in to see if it works ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/compiler/X86/x86-backend.lisp

    r10200 r10505  
    5050        (:%mmx (x86::encode-operand-type :regmmx))
    5151        (:@ (x86::encode-operand-type :anymem))
     52        (:rcontext (x86::encode-operand-type :anymem))
    5253        (:$1 (x86::encode-operand-type :imm1) )
    5354        (:$b (x86::encode-operand-type :imm8s ))
     
    278279                              (cons :@
    279280                                    (simplify-memory-operand (cdr op))))
     281                             ((eq (car op) :rcontext)
     282                              (list :rcontext
     283                                    (simplify-simple-operand (cadr op))))
    280284                             ((member (car op)
    281285                                      '(:% :%q :%l :%w :%b
Note: See TracChangeset for help on using the changeset viewer.