This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: "clrmac" in gcc.c-torture/execute/va-arg-22.c on H8300S
- From: "D.Venkatasubramanian, Noida" <dvenkat at noida dot hcltech dot com>
- To: "'Kazu Hirata'" <kazu at cs dot umass dot edu>, gcc at gcc dot gnu dot org, gdb at sources dot redhat dot com
- Cc: "D.Venkatasubramanian, Noida" <dvenkat at noida dot hcltech dot com>
- Date: Thu, 30 Jan 2003 14:08:42 +0530
- Subject: RE: "clrmac" in gcc.c-torture/execute/va-arg-22.c on H8300S
Hi All,
As a follow-up, none of the mac instructions seem to be
simulated on the H8300S Simulator. :-(
Regards,
Venky
>-----Original Message-----
>From: D.Venkatasubramanian, Noida
>Sent: Thursday, January 30, 2003 1:29 PM
>To: 'Kazu Hirata'; gcc@gcc.gnu.org; gdb@sources.redhat.com
>Subject: "clrmac" in gcc.c-torture/execute/va-arg-22.c on H8300S
>
>
>Hi All,
>
>While testing GCC built for h8300-elf target, I found this
>test failing.
>
>FAIL: gcc.c-torture/execute/va-arg-22.c execution, -O3
>-fomit-frame-pointer
>-funroll-all-loops -finline-functions
>
>This failure is specific to
>Running target h8300-sim/-O2 -mint32 -ms -ms2600
>
>My guess is that "clrmac" instruction is not simulated
>(I am using the simulator). So, either we need to add
>support for this instruction in the simulator, or else,
>disable the generation of this instruction.
>
>I am investigating further, as to how to add the
>instruction. Any suggestions would be welcome.
>
>Sorry if I am cross-posting.
>
>Thanks and regards,
>
>Venky
>
>#define D(N) \
> for (i = 0; i < N; i++) \
> a##N.x[i] = i ^ (N << 3);
>D(0) D(1) D(2) D(3) D(4) D(5) D(6) D(7)
> 18d6: f9 08 f9 08 mov.b #0x8,r1l
> 18d8: 6e f9 00 0f 6e f9 00 0f mov.b
>r1l,@(0xf:16,er7)
> 18dc: 1a 91 1a 91 sub.l er1,er1
> 18de: 89 01 89 01 add.b #0x1,r1l
> 18e0: f8 10 f8 10 mov.b #0x10,r0l
> 18e2: 6e f8 01 54 6e f8 01 54 mov.b
>r0l,@(0x154:16,er7)
>--- snip
> 1940: 6e fe 01 48 6e fe 01 48 mov.b
>r6l,@(0x148:16,er7)
> 1944: 1a b3 1a b3 sub.l er3,er3
> 1946: 8b 05 8b 05 add.b #0x5,r3l
> 1948: 01 a0 01 a0 clrmac
> <--- Not
>supported in simulator
> 194a: 03 33 03 33 ldmac er3,macl
> 194c: fe 30 fe 30 mov.b #0x30,r6l
> 194e: 6e fe 01 3c 6e fe 01 3c mov.b
>r6l,@(0x13c:16,er7)
> 1952: 0c 9b 0c 9b mov.b r1l,r3l
>
>[venkat@peacock Bug19]$ h8300-elf-gcc -v
>Reading specs from
>/export/venkat/gcc_release_3_3/h8300-elf/tools/lib/gcc-lib/h830
>0-elf/3.3/spe
>cs
>Configured with: /home/GCC_RELEASE/configure --target=h8300-elf
>--prefix=/export/venkat/gcc_release_3_3/h8300-elf/tools
>--enable-languages=c
>--with-newlib --with-headers=/home/GCC_RELEASE/newlib/libc/include/
>Thread model: single
>gcc version 3.3 20030127 (prerelease)
>