Bug 16379

Summary: [m32r] can't output large model function call of memcpy
Product: gcc Reporter: inaoka.kazuhiro
Component: targetAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-bugs
Priority: P2    
Version: 3.4.1   
Target Milestone: 3.4.2   
Host: Target: m32r
Build: Known to work:
Known to fail: Last reconfirmed:
Attachments: Patch file

Description inaoka.kazuhiro 2004-07-06 07:49:58 UTC
command line:
m32r-linux-gnu-gcc -S -O -mmodel=large memcpy.c

memcpy.c:
#include <string.h>

void func (void *s1, const void *s2, size_t n)
{
  memcpy(s1,s2,n);
}

I expect the following output. (model large function call)

   seth r14,shigh(memcpy)
   add3 r14,r14,low(memcpy)
   jl r14

But it was. (model small or medium function call)

  bl memcpy
Comment 1 inaoka.kazuhiro 2004-07-06 08:04:05 UTC
Created attachment 6693 [details]
Patch file

Fixed this case.
Comment 2 Andrew Pinski 2004-07-07 14:37:54 UTC
Fixed.