[PATCH v1 6/7] LoongArch Port: gcc/testsuite

Xi Ruoyao xry111@mengyan1223.wang
Sat Nov 6 09:51:18 GMT 2021


On Sat, 2021-11-06 at 16:40 +0800, Chenghua Xu wrote:
> diff --git a/gcc/testsuite/gcc.dg/20020312-2.c
> b/gcc/testsuite/gcc.dg/20020312-2.c
> index 52c33d09b90..2e35d443a1d 100644
> --- a/gcc/testsuite/gcc.dg/20020312-2.c
> +++ b/gcc/testsuite/gcc.dg/20020312-2.c
> @@ -49,6 +49,8 @@ extern void abort (void);
>  # define PIC_REG "r20"
>  #elif defined(__mips__)
>  /* PIC register is $28, but is used even without -fpic.  */
> +#elif defined(__loongarch__)
> +/* PIC register is $r2, but is used even without -fpic.  */

It seems misleading: $r2 is the thread pointer, not the PIC register.

>  #elif defined(__MMIX__)
>  /* No pic register.  */
>  #elif defined(__mn10300__)

-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University


More information about the Gcc-patches mailing list