From: Lulu Cheng Date: Mon, 5 Feb 2024 08:23:20 +0000 (+0800) Subject: LoongArch: Fix wrong return value type of __iocsrrd_h. X-Git-Tag: basepoints/gcc-15~1086 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12bcac83cee08dde89feaee1c66cd143f6c7d7b3;p=thirdparty%2Fgcc.git LoongArch: Fix wrong return value type of __iocsrrd_h. gcc/ChangeLog: * config/loongarch/larchintrin.h (__iocsrrd_h): Modify the function return value type to unsigned short. --- diff --git a/gcc/config/loongarch/larchintrin.h b/gcc/config/loongarch/larchintrin.h index ff2c9f460ac3..04672e717280 100644 --- a/gcc/config/loongarch/larchintrin.h +++ b/gcc/config/loongarch/larchintrin.h @@ -268,7 +268,7 @@ __iocsrrd_b (unsigned int _1) /* Assembly instruction format: rd, rj. */ /* Data types in instruction templates: UHI, USI. */ -extern __inline unsigned char +extern __inline unsigned short __attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __iocsrrd_h (unsigned int _1) {