aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorLulu Cheng <chenglulu@loongson.cn>2024-02-05 16:23:20 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-02-18 09:30:51 +0800
commit12bcac83cee08dde89feaee1c66cd143f6c7d7b3 (patch)
tree5fa79903c69770c0c28eead6e8bf941088bb715d /gcc/config
parentc1d1571329b4e0923a104b6139cd7db2f0aa1c1d (diff)
downloadgcc-12bcac83cee08dde89feaee1c66cd143f6c7d7b3.zip
gcc-12bcac83cee08dde89feaee1c66cd143f6c7d7b3.tar.gz
gcc-12bcac83cee08dde89feaee1c66cd143f6c7d7b3.tar.bz2
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.
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/loongarch/larchintrin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/loongarch/larchintrin.h b/gcc/config/loongarch/larchintrin.h
index ff2c9f4..04672e7 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)
{