bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/29527] New: x86: ambiguous operands silently accepted in AT&T m


From: jbeulich at suse dot com
Subject: [Bug gas/29527] New: x86: ambiguous operands silently accepted in AT&T mode
Date: Fri, 26 Aug 2022 09:35:20 +0000

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

            Bug ID: 29527
           Summary: x86: ambiguous operands silently accepted in AT&T mode
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: jbeulich at suse dot com
  Target Milestone: ---

Note the warnings on the first three insns but their absence on the latter ones
(sizing suffixes ought to be used to disambiguate):

        neg     (%rax)
        not     (%rax)
        nop     (%rax)

        movsx   (%rax), %ax
        movsx   (%rax), %eax
        movsx   (%rax), %rax

        movzx   (%rax), %ax
        movzx   (%rax), %eax
        movzx   (%rax), %rax

        cvtsi2ss (%rax), %xmm0
        vcvtsi2ss (%rax), %xmm0, %xmm0
        vcvtusi2ss (%rax), %xmm0, %xmm0

For MOVSX / MOVZX the first case each is the only one where going silently is
reasonable, as a 16-bit source is very unlikely to be meant (albeit possible to
encode).

Patches addressing these were posted previously, but rejected for questionable
reasons.

-- 
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]