Changeset 8260


Ignore:
Timestamp:
Jan 25, 2008, 2:27:29 AM (12 years ago)
Author:
rme
Message:

Implement SPbuiltin_minus; say "jmp *(%imm0)" with a star to get rid
of assembler warning. (Branches using register or memory operands need
the "*").

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ia32/lisp-kernel/x86-spentry32.s

    r8253 r8260  
    4747        __(shll $word_shift,%imm0)
    4848        __(addl $local_label(misc_ref_jmp),%imm0)
    49         __(jmp (%imm0))
     49        __(jmp *(%imm0))
    5050        .p2align 2
    5151local_label(misc_ref_jmp):
     
    11481148_endsubp(builtin_plus)
    11491149
     1150/* %arg_z <- %arg_y - %arg_z.  Do the fixnum case - including overflow -  */
     1151/*  inline.  Call out otherwise.   */
    11501152_spentry(builtin_minus)
     1153        __(movl %arg_y,%imm0)
     1154        __(orl %arg_z,%imm0)
     1155        __(testb $fixnummask,%imm0_b)
     1156        __(jne 1f)
     1157        __(xchgl %arg_y,%arg_z)
     1158        __(subl %arg_y,%arg_z)
     1159        __(jo,pn C(fix_one_bit_overflow))
     1160        __(repret)
    11511161        __(int $3)
    11521162_endsubp(builtin_minus)
Note: See TracChangeset for help on using the changeset viewer.