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

            Bug ID: 21874
           Summary: x86: Multiple segment registers in the address are not
                    detected with -masm=intel
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: ubizjak at gmail dot com
  Target Milestone: ---

Following assembly:

--cut here--
        .intel_syntax noprefix
        mov     eax, DWORD PTR gs:ds:16
        add     eax, DWORD PTR fs:ds:16
        ret
--cut here--

should fail to assemble due to multiple segment registers in the address.

Fortunately, gas DTRT with the above asm:

0000000000000000 <.text>:
   0:   65 8b 04 25 10 00 00    mov    %gs:0x10,%eax
   7:   00 
   8:   64 03 04 25 10 00 00    add    %fs:0x10,%eax
   f:   00 
  10:   c3                      retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to