[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/27823] New: [z80-unknown-elf] invalid instruction `ld h, (<nn>)
From: |
petemoore at gmx dot net |
Subject: |
[Bug gas/27823] New: [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble |
Date: |
Tue, 04 May 2021 14:09:45 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27823
Bug ID: 27823
Summary: [z80-unknown-elf] invalid instruction `ld h, (<nn>)`
should not assemble
Product: binutils
Version: 2.35
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: petemoore at gmx dot net
CC: sergey.belyashov at gmail dot com
Target Milestone: ---
Target: z80-unknown-elf
```
$ # GAS version
$ z80-unknown-elf-as --version
GNU assembler (GNU Binutils) 2.35.50.20201201
Copyright (C) 2020 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 `z80-unknown-elf'.
$ # Sample assembly file
$ cat test.asm
ld a, (0x1234)
ld h, (0x2345)
ld a, h
$ # Assembly should fail but instead assembled code omits invalid instruction
$ z80-unknown-elf-as -o test.o test.asm && z80-unknown-elf-objdump -d test.o
test.o: file format elf32-z80
Disassembly of section .text:
00000000 <.text>:
0: 3a 34 12 ld a,(0x1234)
3: 7c ld a,h
$
```
Other invalid instructions correctly cause assembly to fail, but for some
reason, `ld h, (<16 bit address>)` doesn't.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/27823] New: [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble,
petemoore at gmx dot net <=
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, petemoore at gmx dot net, 2021/05/04
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, sergey.belyashov at gmail dot com, 2021/05/05
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, sergey.belyashov at gmail dot com, 2021/05/05
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, petemoore at gmx dot net, 2021/05/06
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, petemoore at gmx dot net, 2021/05/11
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, cvs-commit at gcc dot gnu.org, 2021/05/11
- [Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, (<nn>)` should not assemble, nickc at redhat dot com, 2021/05/11