This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SH profiling redux


kewarken@qnx.com wrote:

> #define MCOUNT       \
> __asm__(".globl _mcount\n"    \
>  "_mcount:\n"      \
>  "mov.l __mcount_addr,r1\n"   \
>  "mov.l @(4,r15),r3\n"    \
>  "mov.l r4,@-r15\n"    \
>  "mov.l r5,@-r15\n"    \
>  "mov.l r6,@-r15\n"    \
>  "mov.l r7,@-r15\n"    \
>  "sts pr,r5 \n"    \
>  "mov r3,r4 \n"    \
>  "add #4,r5 \n"    \
    ^^^
Are you sure this inst is correct - I can't stop myself from thinking
it ought to be "add #6,r5" ...

> [...]

Steve.
-- 
Stephen Clarke, Principal Engineer, SuperH Inc.
Phone:1-408-922-4062, Fax:1-408-954-8507, mailto:Stephen.Clarke@st.com
Mail:  SuperH Inc., 3801 Zanker Rd., San Jose, CA 95134, USA.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]