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

2024-01-26 Thread gabravier at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

Gabriel Ravier  changed:

   What|Removed |Added

 CC||gabravier at gmail dot com

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


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

2023-05-01 Thread lh_mouse at 126 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

--- Comment #5 from LIU Hao  ---
There is apparently confusion about using register names, instruction names or
other keywords as labels. People who write Intel assembly shall know that those
are 'bad' names for labels.

That is to say, expecting GAS to parse `rsp` as a label is impractical. Rather,
GAS should have rejected that `rsp:` thing. Something such as 'error: `rsp`
cannot be used as a label name` is more clear, more precise, and safer, than
silently producing unexpected code.

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


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

2023-05-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

--- Comment #4 from H.J. Lu  ---
(In reply to Soomin Kim from comment #3)
> I see. The first bug seems to be a duplicate of bug 12240. How about the
> second one? Bug 12240 may not cover the second bug.

I think it is a feature.

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


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

2023-04-28 Thread soomink at kaist dot ac.kr
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

--- Comment #3 from Soomin Kim  ---
I see. The first bug seems to be a duplicate of bug 12240. How about the second
one? Bug 12240 may not cover the second bug.

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


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

2023-04-28 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from H.J. Lu  ---
Dup.

*** This bug has been marked as a duplicate of bug 12240 ***

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


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

2023-04-27 Thread lh_mouse at 126 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

LIU Hao  changed:

   What|Removed |Added

 CC||lh_mouse at 126 dot com

--- Comment #1 from LIU Hao  ---
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.


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

2023-04-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30336

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

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