bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG


From: Tan Seng Yaw
Subject: BUG
Date: Tue, 30 Sep 2003 16:55:50 +0800

Dear Sir/Madam,

A bug has been found on LDC instruction.
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

Information from h8300-hms-gcc -v command: 
Reading specs from /usr/local/h8/lib/gcc-lib/h8300-hms/3.2.3/specs
Configured with: ../configure --target=h8300-hms --prefix=/usr/local/h8
--enable -languages=c++ --with-newlib
--with-headers=/usr/newlib/newlib-1.11.0/newlib/lib c/include Thread model:
single gcc version 3.2.3 

ld version: 
GNU ld version 2.13.1

CoffTest: CoffTest.o makefile 
        h8300-hms-ld -s -m h8300h -nostdlib -nodefaultlibs -TCoffTest.ld \
CoffTest.o -oCoffTest 
CoffTest.o: CoffTest.s makefile 
        h8300-hms-gcc -mh -c -Wa,-alh CoffTest.s > CoffTest.L 


Previously, this bug was reported to GCC Bugzilla, but they has advised that
this is a binutils bug. 
For more information, please refer to
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12234

Thanks.

Regards,
Tan Seng Yaw
Programmer, R&D (Systems)
E-Genting Sdn. Bhd.




**********************************************************************
PLEASE NOTE: The information in this e-mail message is
legally privileged and confidential information intended only for
the use of the individual(s) name above. If you, the reader of this
message, are not the intended recipient, you are hereby notified
that you should not further disseminate, distribute, or forward this
e-mail message. In addition, if you have received this e-mail in error,
please immediately notify us by email to address@hidden
<mailto:address@hidden>. Thank you.

Visit us at http://www.genting.com.my

**********************************************************************





reply via email to

[Prev in Thread] Current Thread [Next in Thread]