http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45962
--- Comment #14 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2010-10-12 22:49:23 UTC --- Created attachment 22025 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22025 tarball with asm files and somewhat readable simulator traces Just dumping state. Not expecting anyone to follow it at this time, but then again it should be possible. sok.txt: simulator trace using -O0 at r16539. simd-5.s.ok: ditto generated assembly. sbad.txt: simulator trace using -O0 at r165240+c165382. (The assembly file from gcc.c-torture/execute/simd-5.c was used together with the tree from r16539 to avoid mixing up e.g. miscompilations of libgcc.a or newlib.) simd-5.s.bad: ditto generated assembly. The cris-elf src/sim simulator says, for r165240+c165382, generating sbad.txt: "core: 4 byte misaligned read to address 0x30002b at 0x486" (where "misaligned" is a misnomer for "access to undefined memory") On return to func2 register r7 is broken; it was saved on stack in func1, but the location on stack has been clobbered. I haven't yet figured out which function's stack-frame is borked / where exactly the saved value of r7 is clobbered. Tomorrow.