]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Fix wrong return value type of __iocsrrd_h.
authorLulu Cheng <chenglulu@loongson.cn>
Mon, 5 Feb 2024 08:23:20 +0000 (16:23 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Sun, 18 Feb 2024 01:30:51 +0000 (09:30 +0800)
gcc/ChangeLog:

* config/loongarch/larchintrin.h (__iocsrrd_h): Modify the
function return value type to unsigned short.

gcc/config/loongarch/larchintrin.h

index ff2c9f460ac3c5349cded5716b5c0d5dea167ff6..04672e717280c745ea4064a8c9683fd965f2b6f5 100644 (file)
@@ -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)
 {