https://sourceware.org/bugzilla/show_bug.cgi?id=31887
Bug ID: 31887
Summary: [GAS] Confuse an memory operand as immediate value
Product: binutils
Version: 2.41
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: witbring at gmail dot com
Target Milestone: ---
I discovered that the GAS 2.41 transforms memory operands to immediate value.
I think GAS should more accurately verify assembly syntax.
This error has been identified in 5 opcodes when I tested x64(x86) assembly.
Buggy Code (x86/x64)
```
.intel_syntax noprefix
Bugs:
jecxz YMMWORD PTR [1]
jrcxz QWORD PTR [1]
loop XMMWORD PTR [1]
loope XMMWORD PTR [1]
loopne XMMWORD PTR [1]
```
Compiled Code (x86/x64)
```
Bugs:
jecxz 3 <Bugs+0x3>
jrcxz 5 <Bugs+0x5>
loop 7 <Bugs+0x7>
loope 9 <Bugs+0x9>
loopne b <Bugs+0xb>
```
--
You are receiving this mail because:
You are on the CC list for the bug.