public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* [masaki@eie.monolta.co.jp: GAS bug and etc]
@ 1994-11-11  6:11 DJ Delorie
  1994-11-11  6:28 ` H.J. Lu
  0 siblings, 1 reply; 11+ messages in thread
From: DJ Delorie @ 1994-11-11  6:11 UTC (permalink / raw)
  To: gas2

Return-Path: <masaki@eie.minolta.co.jp>
Date: Fri, 11 Nov 1994 14:27:09 +0900
To: djgpp@sun.soe.clarkson.edu
From: masaki@eie.monolta.co.jp (Kenji  Masaki)
X-Sender: masaki@vivid.eie.minolta.co.jp
Subject: GAS bug and etc
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
X-Mailer: Eudora-J(1.3.7-J12)
DJ-Mail-Sort: djgpp@, djgpp

Hello.^[$B!!^[(BDJ and evrybody

We (members of FETX at Niftyserve in JAPAN) found a bug of GAS 2.3 , 2.5.1
and 2.5.2 ,and FIX it as follows.

By the way, it seems that treatment of long-filename lacks unity in djgpp.
i.e. _fixpath is called in stat(), while DPMI(DOS) function [is] called 
directry in access.c.  Shouldn't it be standardized?

        
diff --context=2 -r c:/binutils.2/include/opcode/i386.h
d:/binutils.2/include/opcode/i386.h
*** c:/binutils.2/include/opcode/i386.h        Thu Mar 31 16:35:32 1994
--- d:/binutils.2/include/opcode/i386.h        Wed Nov  9 15:44:48 1994
***************
*** 324,332 ****
  /* these turn into pseudo operations when disp is larger than 8 bits */
  #define IS_JUMP_ON_CX_ZERO(o) \
!   (o == 0x66e3)
  #define IS_JUMP_ON_ECX_ZERO(o) \
    (o == 0xe3)
  
! {"jcxz", 1, 0x66e3, _, JumpByte, { Disp, 0, 0} },
  {"jecxz", 1, 0xe3, _, JumpByte, { Disp, 0, 0} },
  --- 324,332 ----
  /* these turn into pseudo operations when disp is larger than 8 bits */
  #define IS_JUMP_ON_CX_ZERO(o) \
!   (o == 0x67e3)   /* by members of FEXT niftyserve */
  #define IS_JUMP_ON_ECX_ZERO(o) \
    (o == 0xe3)
  
! {"jcxz", 1, 0x67e3, _, JumpByte, { Disp, 0, 0} }, /* by members of FEXT
niftyserve */
  {"jecxz", 1, 0xe3, _, JumpByte, { Disp, 0, 0} },
  
---------- Kenji Masaki
------------------------------
    Kenji  Masaki^[$B!!^[(B
^[$B!!^[(B  Image Infomation Engineering
     Division
   MINOLTA  Co. Ltd. , JAPAN   
------------------------------




^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [masaki@eie.monolta.co.jp: GAS bug and etc]
@ 1994-11-11 13:42 mycroft
  0 siblings, 0 replies; 11+ messages in thread
From: mycroft @ 1994-11-11 13:42 UTC (permalink / raw)
  To: dj; +Cc: gas2, hjl, masaki, raeburn

   The problem with using the 16-bit jcxz is that, even if the offset is
   small, if the target isn't in the first 64K of memory, the program is
   toast.  The reason is that %eip is masked to 0x0000ffff AFTER adding
   the offset.

The comment you're referring to:

rel16/32 indicates that these instructions map to two; one with a 16-bit
relative displacement, the other with a 32-bit relative displacement,
depending on the operand-size attribute of the instruction.

only applies to the `rel16/32' versions of the conditional jump
instructions.  The JCXZ and JECXZ instructions do not allow 16- or
32-bit displacements.

The `Operation' section for that instruction should be more clear.

BTW, why are you using JCXZ or JECXZ at all?  The equivalent sequence:

testl %ecx,%ecx
jz ...

is the same speed on the 386, but faster on the Pentium (and probably
the 486, but I don't have those timing specs).



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1994-11-11 15:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-11  6:11 [masaki@eie.monolta.co.jp: GAS bug and etc] DJ Delorie
1994-11-11  6:28 ` H.J. Lu
1994-11-11  6:37   ` DJ Delorie
1994-11-11  6:45     ` H.J. Lu
1994-11-11  6:49       ` DJ Delorie
1994-11-11  7:06         ` H.J. Lu
1994-11-11 10:31         ` Richard Stallman
1994-11-11 10:46           ` DJ Delorie
1994-11-11 14:27             ` Richard Stallman
1994-11-11 15:01               ` Arthur Kreitman
1994-11-11 13:42 mycroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).