aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asmreg-1.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2007-08-27 10:47:33 +0200
committerUros Bizjak <uros@gcc.gnu.org>2007-08-27 10:47:33 +0200
commitf95ae12aa673d2e40f9fb43f770a37aa1b55c3a7 (patch)
tree9635aa5f9cdf13806e97dda6eb07ecc7e547c05a /gcc/testsuite/gcc.dg/asmreg-1.c
parented7f2db5f0fb2c369237b7490660acf333afe2b1 (diff)
downloadgcc-f95ae12aa673d2e40f9fb43f770a37aa1b55c3a7.zip
gcc-f95ae12aa673d2e40f9fb43f770a37aa1b55c3a7.tar.gz
gcc-f95ae12aa673d2e40f9fb43f770a37aa1b55c3a7.tar.bz2
arm-eabi1.c, [...]: Move to gcc.target/arm directory.
* gcc.dg/arm-eabi1.c, gcc.dg/symbian1.c, cc.dg/symbian2.c, gcc.dg/symbian3.c, gcc.dg/symbian4.c, gcc.dg/symbian5.c, gcc.dg/20051215-1.c: Move to gcc.target/arm directory. * gcc.dg/const-compare.c, gcc.dg/non-lazy-ptr-test.c, gcc.dg/unsigned-long-compare.c, gcc.dg/rs6000-leaf.c: Move to gcc.target/powerpc directory. * gcc.dg/m68k-pic-1.c, gcc.dg/m68k-slp-ice.c: Move to gcc.target/m68k directory. * gcc.dg/i386-darwin-fpmath.c: Move to gcc.target/i386 directory. * gcc.dg/cris-peep2-andu1.c, gcc.dg/cris-peep2-andu2.c, gcc.dg/cris-peep2-xsrand.c, gcc.dg/cris-peep2-xsrand2.c: Move to gcc.target/cris directory. * gcc.dg/20020620-1.c: Move to gcc.target/mips directory. * gcc.dg/bfin-longcall-1.c, gcc.dg/bfin-longcall-2.c: Move to gcc.target/bfin directory. * gcc.target/sh: New directory. * gcc.target/sh/sh.exp: New file. * gcc.dg/pr21255-1.c, gcc.dg/pr21255-2-mb.c, gcc.dg/pr21255-2-ml.c, gcc.dg/pr21255-3.c, gcc.dg/pr21255-4.c, gcc.dg/sh4a-bitmovua.c, gcc.dg/sh4a-cos.c, gcc.dg/sh4a-cosf.c, gcc.dg/sh4a-fprun.c, gcc.dg/sh4a-fsrra.c, gcc.dg/sh4a-memmovua.c, gcc.dg/sh4a-sin.c, gcc.dg/sh4a-sincosf.c, gcc.dg/sh4a-sinf.c gcc.dg/sh-relax.c, gcc.dg/sh-relax-vxworks.c: Move to gcc.target/sh directory. From-SVN: r127828
Diffstat (limited to 'gcc/testsuite/gcc.dg/asmreg-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/asmreg-1.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/gcc/testsuite/gcc.dg/asmreg-1.c b/gcc/testsuite/gcc.dg/asmreg-1.c
deleted file mode 100644
index 85827e9..0000000
--- a/gcc/testsuite/gcc.dg/asmreg-1.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* { dg-do compile { target cris-*-* } } */
-/* { dg-options "-O2" } */
-/* { dg-final { scan-assembler "\\\.ifnc \\\$r9-\\\$r10-\\\$r11-\\\$r12" } } */
-
-/* Sanity check for asm register operands in syscall failed for
- cris-axis-linux-gnu due to regmove bug.
- Hans-Peter Nilsson <hp@axis.com>. */
-
-extern void lseek64 (int, long long, int);
-extern int *__errno_location (void);
-struct dirent64
-{
- long long d_off;
- unsigned short int d_reclen;
- char d_name[256];
-};
-struct kernel_dirent64
-{
- long long d_off;
- unsigned short d_reclen;
- char d_name[256];
-};
-
-static inline int __attribute__ ((__always_inline__))
-__syscall_getdents64 (int fd, char * dirp, unsigned count)
-{
- register unsigned long __sys_res asm ("r10");
- register unsigned long __r10 __asm__ ("r10") = (unsigned long) fd;
- register unsigned long __r11 __asm__ ("r11") = (unsigned long) dirp;
- register unsigned long __r12 __asm__ ("r12") = (unsigned long) count;
- register unsigned long __callno asm ("r9") = (220);
- asm volatile (".ifnc %1-%0-%3-%4,$r9-$r10-$r11-$r12\n\t"
- ".err\n\t"
- ".endif\n\t"
- "break 13"
- : "=r" (__sys_res)
- : "r" (__callno), "0" (__r10), "r" (__r11), "r" (__r12)
- : "memory");
- if (__sys_res >= (unsigned long) -4096)
- {
- (*__errno_location ()) = - __sys_res;
- __sys_res = -1;
- }
- return __sys_res;
-}
-
-int
-__getdents64 (int fd, char *buf, unsigned nbytes)
-{
- struct dirent64 *dp;
- long long last_offset = -1;
- int retval;
- struct kernel_dirent64 *skdp, *kdp;
- dp = (struct dirent64 *) buf;
- skdp = kdp = __builtin_alloca (nbytes);
- retval = __syscall_getdents64(fd, (char *)kdp, nbytes);
- if (retval == -1)
- return -1;
- while ((char *) kdp < (char *) skdp + retval)
- {
- if ((char *) dp > buf + nbytes)
- {
- lseek64(fd, last_offset, 0);
- break;
- }
- last_offset = kdp->d_off;
- __builtin_memcpy (dp->d_name, kdp->d_name, kdp->d_reclen - 10);
- dp = (struct dirent64 *) ((char *) dp + sizeof (*dp));
- kdp = (struct kernel_dirent64 *) (((char *) kdp) + kdp->d_reclen);
- }
-
- return (char *) dp - buf;
-}