public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* monitor instruction bug?
@ 2005-10-10 19:09 root
  0 siblings, 0 replies; 10+ messages in thread
From: root @ 2005-10-10 19:09 UTC (permalink / raw)
  To: bug-binutils; +Cc: binutils, daly


      movddup xmm1,xmm2   ; F2 0F 12 CA

generates:

      f2 0f 12 ca         repnz movhlps xmm1,xmm2

(ref: p3-490 IA-32 Intel Architecture Software Developer's Manual
 Vol 2A: Instruction Set Reference, A-M Order Number 253666)

Tim Daly

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

* Re: monitor instruction bug?
  2005-10-10 19:01 root
@ 2005-10-11 12:59 ` Alan Modra
  0 siblings, 0 replies; 10+ messages in thread
From: Alan Modra @ 2005-10-11 12:59 UTC (permalink / raw)
  To: root; +Cc: bug-binutils, binutils

On Mon, Oct 10, 2005 at 02:57:45PM -0400, root wrote:
> 
>       monitor    ; 0F 01 C8
> 
> generates:
> 
>       0f       sidt (bad)
>       01 c8    add eax,ecx

Not for me.  I suspect you are using an old objdump.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

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

* Re: monitor instruction bug?
  2005-10-10 20:05   ` root
@ 2005-10-10 20:21     ` H. J. Lu
  0 siblings, 0 replies; 10+ messages in thread
From: H. J. Lu @ 2005-10-10 20:21 UTC (permalink / raw)
  To: root; +Cc: bug-binutils, binutils

On Mon, Oct 10, 2005 at 04:01:10PM -0400, root wrote:
> actually none of these bug reports are out of context.
> i have an assembler file with every instruction in the intel docs
> (we need a comprehensive test case) and
> i'm just reporting the actual output from objdump.
> 
> perhaps it's a version issue. which version are you using?
> if all else fails i can send you my assembler code file.
> 

The current binutils 2.16.1 should be OK. If not, open a bug report at

http://www.sourceware.org/bugzilla/


H.J.

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

* Re: monitor instruction bug?
  2005-10-10 19:38 ` H. J. Lu
@ 2005-10-10 20:05   ` root
  2005-10-10 20:21     ` H. J. Lu
  0 siblings, 1 reply; 10+ messages in thread
From: root @ 2005-10-10 20:05 UTC (permalink / raw)
  To: hjl; +Cc: daly, bug-binutils, binutils

actually none of these bug reports are out of context.
i have an assembler file with every instruction in the intel docs
(we need a comprehensive test case) and
i'm just reporting the actual output from objdump.

perhaps it's a version issue. which version are you using?
if all else fails i can send you my assembler code file.

t

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

* Re: monitor instruction bug?
  2005-10-10 19:32 root
@ 2005-10-10 19:38 ` H. J. Lu
  2005-10-10 20:05   ` root
  0 siblings, 1 reply; 10+ messages in thread
From: H. J. Lu @ 2005-10-10 19:38 UTC (permalink / raw)
  To: root; +Cc: bug-binutils, binutils

On Mon, Oct 10, 2005 at 03:13:12PM -0400, root wrote:
> 
>       mwait              ; 0F 01 C9
> 
> generates:
> 
>       0f                 sidt (bad)
>       01 c9              add ecx,ecx
> 
> 
> (ref: p3-556 IA-32 Intel Architecture Software Developer's Manual
>  Vol 2A: Instruction Set Reference, A-M Order Number 253666)
> 

You can't take a byte out of context for ia32 instruction. I have no
problem:

[hjl@gnu-d tmp]$ cat 1.s
        pause
        monitor
        mwait
[hjl@gnu-d tmp]$ gcc -c 1.s -m32
[hjl@gnu-d tmp]$ objdump -d 1.o

1.o:     file format elf32-i386

Disassembly of section .text:

00000000 <.text>:
   0:   f3 90                   pause
   2:   0f 01 c8                monitor %eax,%ecx,%edx
   5:   0f 01 c9                mwait  %eax,%ecx


H.J.

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

* monitor instruction bug?
@ 2005-10-10 19:32 root
  2005-10-10 19:38 ` H. J. Lu
  0 siblings, 1 reply; 10+ messages in thread
From: root @ 2005-10-10 19:32 UTC (permalink / raw)
  To: bug-binutils; +Cc: binutils, daly


      mwait              ; 0F 01 C9

generates:

      0f                 sidt (bad)
      01 c9              add ecx,ecx


(ref: p3-556 IA-32 Intel Architecture Software Developer's Manual
 Vol 2A: Instruction Set Reference, A-M Order Number 253666)

Tim Daly

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

* monitor instruction bug?
@ 2005-10-10 19:23 root
  0 siblings, 0 replies; 10+ messages in thread
From: root @ 2005-10-10 19:23 UTC (permalink / raw)
  To: bug-binutils; +Cc: binutils, daly


      pause             ; F3 90

generates:

      f3 90             repz nop


(ref: p4-40 IA-32 Intel Architecture Software Developer's Manual
 Vol 2B: Instruction Set Reference, N-Z Order Number 253667)

Tim Daly

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

* monitor instruction bug?
@ 2005-10-10 19:13 root
  0 siblings, 0 replies; 10+ messages in thread
From: root @ 2005-10-10 19:13 UTC (permalink / raw)
  To: bug-binutils; +Cc: binutils, daly


      movsldup xmm1,xmm2    ; F3 0F 12 CA

generates:

      f3 0f 12 ca         repz movhlps xmm1,xmm2

(ref: p3-523 IA-32 Intel Architecture Software Developer's Manual
 Vol 2A: Instruction Set Reference, A-M Order Number 253666)

Tim Daly

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

* monitor instruction bug?
@ 2005-10-10 19:12 root
  0 siblings, 0 replies; 10+ messages in thread
From: root @ 2005-10-10 19:12 UTC (permalink / raw)
  To: bug-binutils; +Cc: binutils, daly


      movshdup xmm1,xmm2    ; F3 0F 16 CA

generates:

      f3 0f 16 ca         repz movlhps xmm1,xmm2

(ref: p3-520 IA-32 Intel Architecture Software Developer's Manual
 Vol 2A: Instruction Set Reference, A-M Order Number 253666)

Tim Daly

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

* monitor instruction bug?
@ 2005-10-10 19:01 root
  2005-10-11 12:59 ` Alan Modra
  0 siblings, 1 reply; 10+ messages in thread
From: root @ 2005-10-10 19:01 UTC (permalink / raw)
  To: bug-binutils; +Cc: binutils, daly


      monitor    ; 0F 01 C8

generates:

      0f       sidt (bad)
      01 c8    add eax,ecx

Tim Daly

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

end of thread, other threads:[~2005-10-11 12:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10 19:09 monitor instruction bug? root
  -- strict thread matches above, loose matches on Subject: below --
2005-10-10 19:32 root
2005-10-10 19:38 ` H. J. Lu
2005-10-10 20:05   ` root
2005-10-10 20:21     ` H. J. Lu
2005-10-10 19:23 root
2005-10-10 19:13 root
2005-10-10 19:12 root
2005-10-10 19:01 root
2005-10-11 12:59 ` Alan Modra

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).