[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/31889] New: [GAS] Confuse operand types
From: |
witbring at gmail dot com |
Subject: |
[Bug gas/31889] New: [GAS] Confuse operand types |
Date: |
Wed, 12 Jun 2024 15:11:20 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31889
Bug ID: 31889
Summary: [GAS] Confuse operand types
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 noticed that AArch64 GAS accepts immediate values as the third operand for
tbz, tbnz, and adrp opcodes. However, according to the manual, these opcodes
should only accept labels as their third operand. Therefore, I believe GAS
should raise an error message for the following example code.
Buggy Code.
```
Bugs:
tbz X0, [1], 1<<2
tbnz X0, [1], 1<<2
adrp X0, 1<<2
```
Compiled Code
```
Bugs:
tbz w0, #1, 4 <Bugs+0x4>
tbnz w0, #1, 8 <Bugs+0x8>
adrp x0, 0 <Bugs>
```
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/31889] New: [GAS] Confuse operand types,
witbring at gmail dot com <=