This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12234] New: H8GCC Bug
- From: "sengyaw at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2003 08:14:17 -0000
- Subject: [Bug c/12234] New: H8GCC Bug
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12234
Summary: H8GCC Bug
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sengyaw at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org,sengyaw at yahoo dot com
Dear Sir/Madam,
A bug has been found on the H8GCC.
Please refer to line 19 below, the translated instruction format should be
01406910 but not 01406900, because the register is ER1 not ER0.
15 start:
16 00f4 7A010000 mov.l #data,er1
16 0000
17 00fa F855 mov.b #0x55,r0l
18 00fc 6898 mov.b r0l,@er1
19 00fe 01406900 ldc.w @er1,ccr
20
21 0102 38C0 mov.b r0l,@0xc0:8
22 0104 38C1 mov.b r0l,@0xc1:8
23
24 .bss data,4
25 .end
H8GCC Verson: 3.2.3
System type: SCO Unix
Command: h8gcc -mh -c -Wa,-alh CoffTest.s > CoffTest.L
Thanks.
Regards,
Tan Seng Yaw
Programmer, R&D (Systems)
E-Genting Sdn. Bhd.