diff mbox series

[1/2] LoongArch: Fix wrong return value type of __iocsrrd_h.

Message ID 20240206021030.7391-1-chenglulu@loongson.cn
State New
Headers show
Series [1/2] LoongArch: Fix wrong return value type of __iocsrrd_h. | expand

Commit Message

Lulu Cheng Feb. 6, 2024, 2:10 a.m. UTC
gcc/ChangeLog:

	* config/loongarch/larchintrin.h (__iocsrrd_h): Modify the
	function return value type to unsigned short.
---
 gcc/config/loongarch/larchintrin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lulu Cheng Feb. 18, 2024, 1:32 a.m. UTC | #1
Pushed to r14-9053.

在 2024/2/6 上午10:10, Lulu Cheng 写道:
> gcc/ChangeLog:
>
> 	* config/loongarch/larchintrin.h (__iocsrrd_h): Modify the
> 	function return value type to unsigned short.
> ---
>   gcc/config/loongarch/larchintrin.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/config/loongarch/larchintrin.h b/gcc/config/loongarch/larchintrin.h
> index ff2c9f460ac..04672e71728 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)
>   {
diff mbox series

Patch

diff --git a/gcc/config/loongarch/larchintrin.h b/gcc/config/loongarch/larchintrin.h
index ff2c9f460ac..04672e71728 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)
 {