bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/22681] New: vmovd with qword ptr [rax] is misassembled


From: hjl.tools at gmail dot com
Subject: [Bug gas/22681] New: vmovd with qword ptr [rax] is misassembled
Date: Mon, 08 Jan 2018 00:42:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22681

            Bug ID: 22681
           Summary: vmovd with qword ptr [rax] is misassembled
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

address@hidden testsuite]$  cat /tmp/x.s
        .text
        movd 128(%rax), %xmm1
        movd %rax, %xmm1
        movd %xmm1, 128(%rax)
        movd %xmm1, %rax
        vmovd 128(%rax), %xmm1
        vmovd %rax, %xmm1
        vmovd %xmm1, 128(%rax)
        vmovd %xmm1, %rax
        {evex} vmovd 128(%rax), %xmm1
        {evex} vmovd %xmm1, 128(%rax)
        .intel_syntax noprefix
        movd xmm1, qword ptr [rax + 128]
        movd xmm1, rax
        movd qword ptr [rax + 128], xmm1
        movd rax, xmm1
        vmovd xmm1, qword ptr [rax + 128]
        vmovd xmm1, rax
        vmovd qword ptr [rax + 128], xmm1
        vmovd rax, xmm1
        {evex} vmovd xmm1, qword ptr [rax + 128]
        {evex} vmovd qword ptr [rax + 128], xmm1
address@hidden testsuite]$ gcc -c /tmp/x.s
address@hidden testsuite]$  objdump -dw -Mintel x.o

x.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   66 0f 6e 88 80 00 00 00         movd   xmm1,DWORD PTR [rax+0x80]
   8:   66 48 0f 6e c8          movq   xmm1,rax
   d:   66 0f 7e 88 80 00 00 00         movd   DWORD PTR [rax+0x80],xmm1
  15:   66 48 0f 7e c8          movq   rax,xmm1
  1a:   c5 f9 6e 88 80 00 00 00         vmovd  xmm1,DWORD PTR [rax+0x80]
  22:   c4 e1 f9 6e c8          vmovq  xmm1,rax
  27:   c5 f9 7e 88 80 00 00 00         vmovd  DWORD PTR [rax+0x80],xmm1
  2f:   c4 e1 f9 7e c8          vmovq  rax,xmm1
  34:   62 f1 7d 08 6e 48 20    vmovd  xmm1,DWORD PTR [rax+0x80]
  3b:   62 f1 7d 08 7e 48 20    vmovd  DWORD PTR [rax+0x80],xmm1
  42:   66 48 0f 6e 88 80 00 00 00      movq   xmm1,QWORD PTR [rax+0x80]
  4b:   66 48 0f 6e c8          movq   xmm1,rax
  50:   66 48 0f 7e 88 80 00 00 00      movq   QWORD PTR [rax+0x80],xmm1
  59:   66 48 0f 7e c8          movq   rax,xmm1
  5e:   c5 f9 6e 88 80 00 00 00         vmovd  xmm1,DWORD PTR [rax+0x80]
                                                    This should be QWORD.
  66:   c4 e1 f9 6e c8          vmovq  xmm1,rax
  6b:   c5 f9 7e 88 80 00 00 00         vmovd  DWORD PTR [rax+0x80],xmm1
                                               This should be QWORD.
  73:   c4 e1 f9 7e c8          vmovq  rax,xmm1
  78:   62 f1 7d 08 6e 48 20    vmovd  xmm1,DWORD PTR [rax+0x80]
                                            This should be QWORD.
  7f:   62 f1 7d 08 7e 48 20    vmovd  DWORD PTR [rax+0x80],xmm1
                                       This should be QWORD.
address@hidden testsuite]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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