X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2F20020919-1.c;h=dfb072109c15773b94839eb1eee565c000f3ec78;hb=HEAD;hp=9c16d3d07e82ce3a639387f40cf07aa30f915d24;hpb=f4d6cd201ff10364c75a1f591fa2282e8c1b59ae;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/testsuite/gcc.dg/20020919-1.c b/gcc/testsuite/gcc.dg/20020919-1.c index 9c16d3d07e8..dfb072109c1 100644 --- a/gcc/testsuite/gcc.dg/20020919-1.c +++ b/gcc/testsuite/gcc.dg/20020919-1.c @@ -8,7 +8,7 @@ You must be this tall ---> fit two long longs in asm-declared registers to enter this amusement. */ -/* { dg-do compile { target alpha-*-* cris-*-* i?86-*-* mmix-*-* powerpc-*-* rs6000-*-* x86_64-*-* } } */ +/* { dg-do compile { target alpha*-*-* cris-*-* crisv32-*-* i?86-*-* mmix-*-* powerpc*-*-* rs6000-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ /* Constructed examples; input/output (same register), output, input, and @@ -38,11 +38,14 @@ # define REG1 "$8" # define REG2 "$9" #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \ - || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2) + || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2) \ + || defined (__ppc) # define REG1 "6" # define REG2 "7" -# define REG3 "8" -# define REG4 "9" +# if !defined(__powerpc64__) && !defined(__LP64__) +# define REG3 "8" +# define REG4 "9" +# endif #elif defined (__x86_64__) # define REG1 "rax" # define REG2 "rdx" @@ -235,12 +238,18 @@ bazllb (long long llp) /* Real-world example of bug. */ +#ifdef _WIN64 +typedef unsigned int loc_size_t __attribute__ ((mode (DI))); +#else +typedef __SIZE_TYPE__ loc_size_t; +#endif + struct stat; int _dl_stat (const char *file_name, struct stat *buf) { - register long a asm (REG1) = (long) file_name; - register long b asm (REG2) = (long) buf; + register long a asm (REG1) = (long) (loc_size_t) file_name; + register long b asm (REG2) = (long) (loc_size_t) buf; asm volatile ("movu.w %1,$r9\n\tbreak 13" : "=r" (a) : "g" (106), "0" (a), "r" (b) : REG1, REG5); /* { dg-error "conflict" } */ if (a >= 0)