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

Zheng Bao <fishbaoz at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fishbaoz at hotmail dot com

--- Comment #2 from Zheng Bao <fishbaoz at hotmail dot com> ---
Here is my test result.


zbao@zbao-msi:~/mountdisk3/binutils-debug$ as --version
GNU assembler (GNU Binutils for Ubuntu) 2.38
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.

zbao@zbao-msi:~/mountdisk3/binutils-debug$ cat test.s
.intel_syntax noprefix
.data
byte:
word:
qword:
    .long 0

.text
test:
        mov     edx, DWORD PTR [byte]
        mov     edx, DWORD PTR [word]
        mov     edx, DWORD PTR [qword]

//      mov     edx, DWORD PTR ["byte"]
//      mov     edx, DWORD PTR ["word"]
//      mov     edx, DWORD PTR ["qword"]
zbao@zbao-msi:~/mountdisk3/binutils-debug$ as test.s -o test.o -c
zbao@zbao-msi:~/mountdisk3/binutils-debug$ objdump -S test.o

test.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <test>:
   0:   8b 14 25 01 00 00 00    mov    0x1,%edx
   7:   8b 14 25 02 00 00 00    mov    0x2,%edx
   e:   8b 14 25 08 00 00 00    mov    0x8,%edx

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

Reply via email to