[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/4834] Incorrect bytemode in x86 disassembler

From: ht at inter7 dot jp
Subject: [Bug binutils/4834] Incorrect bytemode in x86 disassembler
Date: 24 Jul 2007 04:37:41 -0000

------- Additional Comments From ht at inter7 dot jp  2007-07-24 04:37 -------
Some more bytemode issues.

% cat cvt.s
.byte  0xF2, 0x0F, 0xC2, 0x00, 0x00
.byte  0xF3, 0x0F, 0xC2, 0x00, 0x00
.byte  0x66, 0x0F, 0x2A, 0x00
.byte  0x0F, 0x2D, 0x00
.byte  0xF2, 0x0F, 0x2D, 0x00
.byte  0x0F, 0x2C, 0x00
.byte  0xF2, 0x0F, 0x2C, 0x00
.byte  0xF3, 0x0F, 0x2C, 0x00

% as cvt.s -o cvt.o
% objdump -dw -Mintel --section="LC_SEGMENT.__TEXT.__text" cvt.o
cvt.o:     file format mach-o-le

Disassembly of section LC_SEGMENT.__TEXT.__text:

0000000000000000 <LC_SEGMENT.__TEXT.__text>:
   0:   f2 0f c2 00 00          cmpeqsd xmm0,XMMWORD PTR [eax]
   5:   f3 0f c2 00 00          cmpeqss xmm0,XMMWORD PTR [eax]
   a:   66 0f 2a 00             cvtpi2pd xmm0,XMMWORD PTR [eax]
   e:   0f 2d 00                cvtps2pi mm0,XMMWORD PTR [eax]
  11:   f2 0f 2d 00             cvtsd2si eax,XMMWORD PTR [eax]
  15:   0f 2c 00                cvttps2pi mm0,XMMWORD PTR [eax]
  18:   f2 0f 2c 00             cvttsd2si eax,XMMWORD PTR [eax]
  1c:   f3 0f 2c 00             cvttss2si eax,XMMWORD PTR [eax]

Intel manual says:

Opcode                  Instruction
F2 0F C2 /r ib          CMPSD xmm1, xmm2/m64, imm8
F3 0F C2 /r ib          CMPSS xmm1, xmm2/m32, imm8
66 0F 2A /r             CVTPI2PD xmm, mm/m64
0F 2D /r                CVTPS2PI mm, xmm/m64
F2 0F 2D /r             CVTSD2SI r32, xmm/m64
0F 2C /r                CVTTPS2PI mm, xmm/m64
F2 0F 2C /r             CVTTSD2SI r32, xmm/m64
F3 0F 2C /r             CVTTSS2SI r32, xmm/m32



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]