1/* Copyright (c) 2003 Richard Sandiford  <rsandifo@redhat.com> */
2#include <picolibc.h>
3
4; This file exists to provide a movsd implementation of strcpy().
5; Continue to use the generic version for targets other than h8sx.
6#ifdef __H8300SX__
7#include "setarch.h"
8
9	.global _strcpy
10_strcpy:
11	stm.l	er4-er6,@-er7
12	mov.l	er0,er6
13	mov.l	er1,er5
141:	movsd	2f
15	bra	1b
162:	rts/l	er4-er6
17#endif
18