* [PATCH] Add VXRM enum
@ 2023-07-13 6:31 chenyixuan
2023-07-13 6:54 ` Robin Dapp
0 siblings, 1 reply; 4+ messages in thread
From: chenyixuan @ 2023-07-13 6:31 UTC (permalink / raw)
To: gcc-patches
Cc: kito.cheng, andrew, shiyulong, oriachiuan, shihua, jiawei, XYenChi
From: XYenChi <chenyixuan@iscas.ac.cn>
Noticed that the rvv-intrinsic-doc updated the __RISCV_VXRM.
gcc/ChangeLog:Add __RISCV_VXRM enum to riscv_vector.h
2023-07-13 XYenChi <chenyixuan@iscas.ac.cn>
* config/riscv/riscv_vector.h (enum __RISCV_VXRM):Add an enum __RISCV_VXRM to help express the rounding modes.
---
gcc/config/riscv/riscv_vector.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gcc/config/riscv/riscv_vector.h b/gcc/config/riscv/riscv_vector.h
index ff54b6be863..0a90816be1a 100644
--- a/gcc/config/riscv/riscv_vector.h
+++ b/gcc/config/riscv/riscv_vector.h
@@ -42,6 +42,13 @@ enum RVV_CSR {
RVV_VCSR,
};
+enum __RISCV_VXRM {
+ __RISCV_VXRM_RNU = 0,
+ __RISCV_VXRM_RNE = 1,
+ __RISCV_VXRM_RDN = 2,
+ __RISCV_VXRM_ROD = 3,
+};
+
__extension__ extern __inline unsigned long
__attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
vread_csr(enum RVV_CSR csr)
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add VXRM enum
2023-07-13 6:31 [PATCH] Add VXRM enum chenyixuan
@ 2023-07-13 6:54 ` Robin Dapp
2023-07-13 7:24 ` Kito Cheng
0 siblings, 1 reply; 4+ messages in thread
From: Robin Dapp @ 2023-07-13 6:54 UTC (permalink / raw)
To: chenyixuan, gcc-patches
Cc: rdapp.gcc, kito.cheng, andrew, shiyulong, oriachiuan, shihua, jiawei
> +enum __RISCV_VXRM {
> + __RISCV_VXRM_RNU = 0,
> + __RISCV_VXRM_RNE = 1,
> + __RISCV_VXRM_RDN = 2,
> + __RISCV_VXRM_ROD = 3,
> +};
> +
> __extension__ extern __inline unsigned long
> __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
> vread_csr(enum RVV_CSR csr)
We have that already in riscv-protos.h :)
(fixed_point_rounding_mode)
Regards
Robin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add VXRM enum
2023-07-13 6:54 ` Robin Dapp
@ 2023-07-13 7:24 ` Kito Cheng
2023-07-13 7:54 ` 陈逸轩
0 siblings, 1 reply; 4+ messages in thread
From: Kito Cheng @ 2023-07-13 7:24 UTC (permalink / raw)
To: Robin Dapp
Cc: chenyixuan, gcc-patches, andrew, shiyulong, oriachiuan, shihua, jiawei
Those enum values have been defined via `#pragma riscv intrinsic "vector"` :)
https://github.com/gcc-mirror/gcc/commit/01d62e9b6c3e9fd3132f1616843103ccf81778ed
On Thu, Jul 13, 2023 at 2:55 PM Robin Dapp via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> > +enum __RISCV_VXRM {
> > + __RISCV_VXRM_RNU = 0,
> > + __RISCV_VXRM_RNE = 1,
> > + __RISCV_VXRM_RDN = 2,
> > + __RISCV_VXRM_ROD = 3,
> > +};
> > +
> > __extension__ extern __inline unsigned long
> > __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
> > vread_csr(enum RVV_CSR csr)
>
> We have that already in riscv-protos.h :)
> (fixed_point_rounding_mode)
>
> Regards
> Robin
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [PATCH] Add VXRM enum
2023-07-13 7:24 ` Kito Cheng
@ 2023-07-13 7:54 ` 陈逸轩
0 siblings, 0 replies; 4+ messages in thread
From: 陈逸轩 @ 2023-07-13 7:54 UTC (permalink / raw)
To: Kito Cheng, Robin Dapp
Cc: gcc-patches, andrew, shiyulong, oriachiuan, shihua, jiawei
Oh, sorry for that, thank you very much! XD
> -----Original Messages-----
> From: "Kito Cheng" <kito.cheng@gmail.com>
> Sent Time: 2023-07-13 15:24:45 (Thursday)
> To: "Robin Dapp" <rdapp.gcc@gmail.com>
> Cc: chenyixuan@iscas.ac.cn, gcc-patches@gcc.gnu.org, andrew@sifive.com, shiyulong@iscas.ac.cn, oriachiuan@gmail.com, shihua@iscas.ac.cn, jiawei@iscas.ac.cn
> Subject: Re: [PATCH] Add VXRM enum
>
> Those enum values have been defined via `#pragma riscv intrinsic "vector"` :)
>
> https://github.com/gcc-mirror/gcc/commit/01d62e9b6c3e9fd3132f1616843103ccf81778ed
>
> On Thu, Jul 13, 2023 at 2:55 PM Robin Dapp via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
> >
> > > +enum __RISCV_VXRM {
> > > + __RISCV_VXRM_RNU = 0,
> > > + __RISCV_VXRM_RNE = 1,
> > > + __RISCV_VXRM_RDN = 2,
> > > + __RISCV_VXRM_ROD = 3,
> > > +};
> > > +
> > > __extension__ extern __inline unsigned long
> > > __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
> > > vread_csr(enum RVV_CSR csr)
> >
> > We have that already in riscv-protos.h :)
> > (fixed_point_rounding_mode)
> >
> > Regards
> > Robin
> >
</gcc-patches@gcc.gnu.org></rdapp.gcc@gmail.com></kito.cheng@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-13 7:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13 6:31 [PATCH] Add VXRM enum chenyixuan
2023-07-13 6:54 ` Robin Dapp
2023-07-13 7:24 ` Kito Cheng
2023-07-13 7:54 ` 陈逸轩
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).