bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/291] GAS assemble direct constant as memory reference


From: sourceware.org at neonics dot com
Subject: [Bug gas/291] GAS assemble direct constant as memory reference
Date: Sun, 19 Feb 2012 02:02:18 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=291

Kenney <sourceware.org at neonics dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |sourceware.org at neonics
                   |                            |dot com
            Version|2.15                        |2.22
         Resolution|FIXED                       |

--- Comment #2 from Kenney <sourceware.org at neonics dot com> 2012-02-19 
02:02:18 UTC ---
This bug has reappeared, or is still present (using .intel_syntax noprefix)

GNU assembler version 2.22.51 (i686-cygwin) using BFD version (GNU Binutils)
2.2
2.51.20111013

Example: (test.s)
--------------------------------------
.intel_syntax noprefix
.text
.equ    A,      0xaaaa
        B =     0xbbbb

        mov     ax, A
        mov     ax, B
        mov     ax, C
        mov     ax, D

.equ    C,      0xcccc
        D =     0xdddd
-------------------------------------
$ as test.s
$ objdump -Mintel-mnemonic -d a.out
-----------------------------------------------------
a.out:     file format pe-i386

Disassembly of section .text:

00000000 <.text>:
   0:   66 b8 aa aa             mov    ax,0xaaaa
   4:   66 b8 bb bb             mov    ax,0xbbbb
   8:   66 a1 cc cc 00 00       mov    ax,ds:0xcccc
   e:   66 a1 dd dd 00 00       mov    ax,ds:0xdddd
------------------------------------------------------

EXPECTED output:
-----------------------------------------------------
00000000 <.text>:
   0:   66 b8 aa aa             mov    ax,0xaaaa
   4:   66 b8 bb bb             mov    ax,0xbbbb
   8:   66 b8 cc cc             mov    ax,0xcccc
   e:   66 b8 dd dd             mov    ax,0xdddd
-----------------------------------------------------

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]