bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/30336] The GNU Assembler has bugs in Intel syntax


From: lh_mouse at 126 dot com
Subject: [Bug gas/30336] The GNU Assembler has bugs in Intel syntax
Date: Thu, 27 Apr 2023 15:55:41 +0000

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

LIU Hao <lh_mouse at 126 dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lh_mouse at 126 dot com

--- Comment #1 from LIU Hao <lh_mouse at 126 dot com> ---
Also this:

```
E:\lh_mouse\Desktop>as --version
GNU assembler (GNU Binutils) 2.40
Copyright (C) 2023 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-w64-mingw32'.

E:\lh_mouse\Desktop>cat test.s
.intel_syntax noprefix
mov eax, dword ptr shr[rip]

E:\lh_mouse\Desktop>as test.s
test.s: Assembler messages:
test.s:2: Error: invalid use of operator "shr"

```

GCC generates `mov eax, dword ptr shr[rip]` and Clang generates `mov eax, dword
ptr [rip + shr]`, but AS accepts neither.

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