-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Zfinx and Zfh tests #367
Conversation
As already discussed, this PR can be merged only after the corresponding PR for ISAC has been merged. |
I would use these tests on CORE-V Wally when they are available. PR72 for ISAC has been merged. PR67 from CTG has been waiting for review since July 2. |
@neelgala , -Please have your review and let us know if more information would help. |
I see there are no fma tests in this directory. Is there a reason these are omitted? |
Hi,
As per the Zfinx and Zfh specification, there is no fma tests available I
think
…On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***> wrote:
I see there are no fma tests in this directory. Is there a reason these
are omitted?
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Got it. Thanks!
…On Mon, Jan 15, 2024 at 8:18 PM anuani21 ***@***.***> wrote:
Hi,
As per the Zfinx and Zfh specification, there is no fma tests available I
think
On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***>
wrote:
> I see there are no fma tests in this directory. Is there a reason these
> are omitted?
>
> —
> Reply to this email directly, view it on GitHub
> <
#367 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR4AA37ZAEBKH7BPOFP4F4LYOX5R3AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DMNRZHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
On further review of the ratified Zfh spec, there are fmadd.h and related instructions. See the bottom figure of Section 15.2. src3 H src2 src1 RM dest F[N]MADD/F[N]MSUB https://wiki.riscv.org/display/HOME/Recently+Ratified+Extensions |
I'm not sure how to interpret that.
"The Zfinx extension adds all of the instructions that the F extension
adds, except for the transfer instructions FLW, FSW, FMV.W.X, FMV.X.W,
C.FLW[SP], and C.FSW[SP]."
So, there should be FMA tests.
On Mon, Jan 15, 2024 at 8:22 PM David Harris ***@***.***>
wrote:
… Got it. Thanks!
On Mon, Jan 15, 2024 at 8:18 PM anuani21 ***@***.***> wrote:
> Hi,
>
> As per the Zfinx and Zfh specification, there is no fma tests available
I
> think
>
> On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***>
> wrote:
>
> > I see there are no fma tests in this directory. Is there a reason
these
> > are omitted?
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#367 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#367 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AR4AA37ZAEBKH7BPOFP4F4LYOX5R3AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DMNRZHE>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJXXCEAZ6Q62RFN4XULYOX6AZAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DSMJVGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi,
I thought fma and fmadd instructions are different. Fmadd and fmsub
instructions are available in zfh and zfinx. I will upload the coverage
report for fmadd and fmsub instructions shortly.
…On Wed, 24 Jan, 2024, 11:14 pm Allen Baum, ***@***.***> wrote:
I'm not sure how to interpret that.
"The Zfinx extension adds all of the instructions that the F extension
adds, except for the transfer instructions FLW, FSW, FMV.W.X, FMV.X.W,
C.FLW[SP], and C.FSW[SP]."
So, there should be FMA tests.
On Mon, Jan 15, 2024 at 8:22 PM David Harris ***@***.***>
wrote:
> Got it. Thanks!
>
> On Mon, Jan 15, 2024 at 8:18 PM anuani21 ***@***.***> wrote:
>
> > Hi,
> >
> > As per the Zfinx and Zfh specification, there is no fma tests
available
> I
> > think
> >
> > On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***>
> > wrote:
> >
> > > I see there are no fma tests in this directory. Is there a reason
> these
> > > are omitted?
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#367 (comment)>,
>
> >
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
>
> >
> > > .
> > > You are receiving this because you authored the thread.Message ID:
> > > ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#367 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AR4AA37ZAEBKH7BPOFP4F4LYOX5R3AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DMNRZHE>
>
> > .
> > You are receiving this because you commented.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#367 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AHPXVJXXCEAZ6Q62RFN4XULYOX6AZAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DSMJVGE>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FFZOUYDQ4OCBPG2HT53YQFCAJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGYZDONRSGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Remember that there are fnmadd and fnmsub as well in the FMA class of instructions.
… On Jan 24, 2024, at 5:36 PM, anuani21 ***@***.***> wrote:
Hi,
I thought fma and fmadd instructions are different. Fmadd and fmsub
instructions are available in zfh and zfinx. I will upload the coverage
report for fmadd and fmsub instructions shortly.
On Wed, 24 Jan, 2024, 11:14 pm Allen Baum, ***@***.***> wrote:
> I'm not sure how to interpret that.
> "The Zfinx extension adds all of the instructions that the F extension
> adds, except for the transfer instructions FLW, FSW, FMV.W.X, FMV.X.W,
> C.FLW[SP], and C.FSW[SP]."
>
> So, there should be FMA tests.
>
> On Mon, Jan 15, 2024 at 8:22 PM David Harris ***@***.***>
> wrote:
>
> > Got it. Thanks!
> >
> > On Mon, Jan 15, 2024 at 8:18 PM anuani21 ***@***.***> wrote:
> >
> > > Hi,
> > >
> > > As per the Zfinx and Zfh specification, there is no fma tests
> available
> > I
> > > think
> > >
> > > On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***>
> > > wrote:
> > >
> > > > I see there are no fma tests in this directory. Is there a reason
> > these
> > > > are omitted?
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub
> > > > <
> > >
> >
> #367 (comment)>,
>
> >
> > >
> > > > or unsubscribe
> > > > <
> > >
> >
> https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
>
> >
> > >
> > > > .
> > > > You are receiving this because you authored the thread.Message ID:
> > > > ***@***.***>
> > > >
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
> #367 (comment)>,
>
> >
> > > or unsubscribe
> > > <
> >
> https://github.com/notifications/unsubscribe-auth/AR4AA37ZAEBKH7BPOFP4F4LYOX5R3AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DMNRZHE>
>
> >
> > > .
> > > You are receiving this because you commented.Message ID:
> > > ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
> #367 (comment)>,
>
> > or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/AHPXVJXXCEAZ6Q62RFN4XULYOX6AZAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DSMJVGE>
>
> > .
> > You are receiving this because you are subscribed to this thread.Message
> > ID: ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#367 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A3G6FFZOUYDQ4OCBPG2HT53YQFCAJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGYZDONRSGQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub <#367 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AR4AA32MAHIUM2H2L7SQWXTYQGZJPAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGIYDCOJTGU>.
You are receiving this because you commented.
|
Ya sure I will upload fmadd,fmsub,fnmadd and fnmsub instructions.
On Thu, Jan 25, 2024 at 10:34 AM David Harris ***@***.***>
wrote:
… Remember that there are fnmadd and fnmsub as well in the FMA class of
instructions.
> On Jan 24, 2024, at 5:36 PM, anuani21 ***@***.***> wrote:
>
>
> Hi,
>
> I thought fma and fmadd instructions are different. Fmadd and fmsub
> instructions are available in zfh and zfinx. I will upload the coverage
> report for fmadd and fmsub instructions shortly.
>
> On Wed, 24 Jan, 2024, 11:14 pm Allen Baum, ***@***.***> wrote:
>
> > I'm not sure how to interpret that.
> > "The Zfinx extension adds all of the instructions that the F extension
> > adds, except for the transfer instructions FLW, FSW, FMV.W.X, FMV.X.W,
> > C.FLW[SP], and C.FSW[SP]."
> >
> > So, there should be FMA tests.
> >
> > On Mon, Jan 15, 2024 at 8:22 PM David Harris ***@***.***>
> > wrote:
> >
> > > Got it. Thanks!
> > >
> > > On Mon, Jan 15, 2024 at 8:18 PM anuani21 ***@***.***> wrote:
> > >
> > > > Hi,
> > > >
> > > > As per the Zfinx and Zfh specification, there is no fma tests
> > available
> > > I
> > > > think
> > > >
> > > > On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***>
> > > > wrote:
> > > >
> > > > > I see there are no fma tests in this directory. Is there a
reason
> > > these
> > > > > are omitted?
> > > > >
> > > > > —
> > > > > Reply to this email directly, view it on GitHub
> > > > > <
> > > >
> > >
> >
#367 (comment)>,
> >
> > >
> > > >
> > > > > or unsubscribe
> > > > > <
> > > >
> > >
> >
https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
> >
> > >
> > > >
> > > > > .
> > > > > You are receiving this because you authored the thread.Message
ID:
> > > > > ***@***.***>
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub
> > > > <
> > >
> >
#367 (comment)>,
> >
> > >
> > > > or unsubscribe
> > > > <
> > >
> >
https://github.com/notifications/unsubscribe-auth/AR4AA37ZAEBKH7BPOFP4F4LYOX5R3AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DMNRZHE>
> >
> > >
> > > > .
> > > > You are receiving this because you commented.Message ID:
> > > > ***@***.***>
> > > >
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
#367 (comment)>,
> >
> > > or unsubscribe
> > > <
> >
https://github.com/notifications/unsubscribe-auth/AHPXVJXXCEAZ6Q62RFN4XULYOX6AZAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DSMJVGE>
> >
> > > .
> > > You are receiving this because you are subscribed to this
thread.Message
> > > ID: ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
#367 (comment)>,
> > or unsubscribe
> > <
https://github.com/notifications/unsubscribe-auth/A3G6FFZOUYDQ4OCBPG2HT53YQFCAJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGYZDONRSGQ>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
> —
> Reply to this email directly, view it on GitHub <
#367 (comment)>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AR4AA32MAHIUM2H2L7SQWXTYQGZJPAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGIYDCOJTGU>.
> You are receiving this because you commented.
>
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FF5NFY2OK4I5HT2RS7DYQHRXPAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGM3DCNJQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ah, I thought you were using fma as the generic for fm[n][add/sub]
…On Wed, Jan 24, 2024 at 9:12 PM anuani21 ***@***.***> wrote:
Ya sure I will upload fmadd,fmsub,fnmadd and fnmsub instructions.
On Thu, Jan 25, 2024 at 10:34 AM David Harris ***@***.***>
wrote:
> Remember that there are fnmadd and fnmsub as well in the FMA class of
> instructions.
>
> > On Jan 24, 2024, at 5:36 PM, anuani21 ***@***.***> wrote:
> >
> >
> > Hi,
> >
> > I thought fma and fmadd instructions are different. Fmadd and fmsub
> > instructions are available in zfh and zfinx. I will upload the
coverage
> > report for fmadd and fmsub instructions shortly.
> >
> > On Wed, 24 Jan, 2024, 11:14 pm Allen Baum, ***@***.***> wrote:
> >
> > > I'm not sure how to interpret that.
> > > "The Zfinx extension adds all of the instructions that the F
extension
> > > adds, except for the transfer instructions FLW, FSW, FMV.W.X,
FMV.X.W,
> > > C.FLW[SP], and C.FSW[SP]."
> > >
> > > So, there should be FMA tests.
> > >
> > > On Mon, Jan 15, 2024 at 8:22 PM David Harris ***@***.***>
> > > wrote:
> > >
> > > > Got it. Thanks!
> > > >
> > > > On Mon, Jan 15, 2024 at 8:18 PM anuani21 ***@***.***> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > As per the Zfinx and Zfh specification, there is no fma tests
> > > available
> > > > I
> > > > > think
> > > > >
> > > > > On Mon, Jan 15, 2024 at 11:01 PM David Harris ***@***.***>
> > > > > wrote:
> > > > >
> > > > > > I see there are no fma tests in this directory. Is there a
> reason
> > > > these
> > > > > > are omitted?
> > > > > >
> > > > > > —
> > > > > > Reply to this email directly, view it on GitHub
> > > > > > <
> > > > >
> > > >
> > >
>
#367 (comment)>,
>
> > >
> > > >
> > > > >
> > > > > > or unsubscribe
> > > > > > <
> > > > >
> > > >
> > >
>
https://github.com/notifications/unsubscribe-auth/A3G6FF7QWJ44KEAEENHUWZLYOVRXRAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGU3DAOBTGI>
>
> > >
> > > >
> > > > >
> > > > > > .
> > > > > > You are receiving this because you authored the thread.Message
> ID:
> > > > > > ***@***.***>
> > > > > >
> > > > >
> > > > > —
> > > > > Reply to this email directly, view it on GitHub
> > > > > <
> > > >
> > >
>
#367 (comment)>,
>
> > >
> > > >
> > > > > or unsubscribe
> > > > > <
> > > >
> > >
>
https://github.com/notifications/unsubscribe-auth/AR4AA37ZAEBKH7BPOFP4F4LYOX5R3AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DMNRZHE>
>
> > >
> > > >
> > > > > .
> > > > > You are receiving this because you commented.Message ID:
> > > > > ***@***.***>
> > > > >
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub
> > > > <
> > >
>
#367 (comment)>,
>
> > >
> > > > or unsubscribe
> > > > <
> > >
>
https://github.com/notifications/unsubscribe-auth/AHPXVJXXCEAZ6Q62RFN4XULYOX6AZAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGA2DSMJVGE>
>
> > >
> > > > .
> > > > You are receiving this because you are subscribed to this
> thread.Message
> > > > ID: ***@***.***>
> > > >
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
>
#367 (comment)>,
>
> > > or unsubscribe
> > > <
>
https://github.com/notifications/unsubscribe-auth/A3G6FFZOUYDQ4OCBPG2HT53YQFCAJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGYZDONRSGQ>
>
> > > .
> > > You are receiving this because you authored the thread.Message ID:
> > > ***@***.***>
> > >
> > —
> > Reply to this email directly, view it on GitHub <
>
#367 (comment)>,
> or unsubscribe <
>
https://github.com/notifications/unsubscribe-auth/AR4AA32MAHIUM2H2L7SQWXTYQGZJPAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGIYDCOJTGU>.
>
> > You are receiving this because you commented.
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#367 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A3G6FF5NFY2OK4I5HT2RS7DYQHRXPAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGM3DCNJQHA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJQTYXASI2CFS7JCQDDYQHSTVAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGM3DONZWGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
#else | ||
#define SIGALIGN 4 | ||
#endif | ||
#elif ZDINX==1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong; ZFinx only needs 4B registers, NOT 8B registers. And, if both Zfinx and Zdinx exist, then you need to accommodate both sizes, don't you? And, they're different on RV64 vs. RV32. So Zdinx would need to execute 2 separate LW ops on an RV32 compared to a single LD that RV64 to replace a FLD.
CORE-V Wally will take advantage of the FMA tests as soon as you have them available. |
I have updated FMA tests for Zfh and Zfinx extension. |
I tried them out and they are working for me. The f{madd/msub/nmadd/nmsub}_b15-01 tests are not in the PR. These are the largest set of FMA tests. Is there a reason they aren't applicable to Zfh? |
I will check and let you know
…On Wed, 7 Feb, 2024, 2:13 am David Harris, ***@***.***> wrote:
I tried them out and they are working for me. The
f{madd/msub/nmadd/nmsub}_b15-01 tests are not in the PR. These are the
largest set of FMA tests. Is there a reason they aren't applicable to Zfh?
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FF2UBZHAXKPUE5VIGYTYSKIXPAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQG4YTSNZZGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@davidharrishmc, Are you facing any issue while running Zfinx test? |
I don't have hardware support for Zfinx, so I don't know if those tests have any issues. |
No issues in the test, to check whether it is working fine.
…On Wed, 7 Feb, 2024, 10:21 am David Harris, ***@***.***> wrote:
I don't have hardware support for Zfinx, so I don't know if those tests
have any issues.
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FF4ZL4OT5T2S22RRRHLYSMB67AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGI3TQOJVGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@davidharrishmc, I have updated f{madd/msub/nmadd/nmsub}_b15-01 tests in the PR. |
The Zfh fma _b15 tests run for CORE-V Wally. |
The fcvt.h.l tests should only depend on the F and Zfh extensions, as indicated in the test case.
However, the TEST_FPIO_OP macro generates a fsd, which requires the D extension. Therefore, these tests do not run successfully on a RV64IFZfh machine.
It would be better to produce a fsw or fsh in this situation. |
I see no further commits that would indicate that the problem David found (tests use D-ext ops on a configuration that only supports F-extension) have been fixed. Has that one been fixed? As far as I can tell, that "fsd" corresponds to the first parameter of TEST_FPIO_OP ("inst" parameter ) |
Actually, that "fsd" op corresponds to something after the FPIO macro, but all the FP tests that use the FPIO macro consist of nothing but FPIO macros. the only ops that use FPIO are FCVT ops, and there are no uses of fsd in them, therefore it must be after the FPIO. But, all of those tests end with no further ops. Search for "fsd" shows only tests of fsd, and the don't use FPIO. So, I cannot figure out where that fsd is being generated. |
… On Sun, 24 Mar, 2024, 3:40 am Allen Baum, ***@***.***> wrote:
Actually, that "fsd" op corresponds to something after the FPIO macro, but
all the FP tests that use the FPIO macro consist of nothing but FPIO
macros. the only ops that use FPIO are FCVT ops, and there are no uses of
fsd in them, therefore it must be after the FPIO. But, all of those tests
end with no further ops. Search for "fsd" shows only tests of fsd, and the
don't use FPIO. So, I cannot figure out where that fsd is being generated.
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3G6FFYWEVJWFTSEUNXSE7DYZX4UNAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGYYTKNJYHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@davidharrishmc and @allenjbaum, I have updated the test using fsw instead of fsd. I have attached the logs for your reference for fcvt.h.l instruction. 00000000800003ac <inst_0>: |
This fix to RVTEST_ISA looks good. There is still an inconsistency between the check ISA lines in fcvt.h.l_b25 and _b26. The instruction should depend on RV64, so I think the _b25 line should add *RV64 to match _b26. RVTEST_CASE(0,"//check ISA:=regex(.*I.*F.Zfh.);def TEST_CASE_1=True;",fcvt.h.l_b25) The same applies to fcvt.h.lu_b25. The check ISA is also wrong (usually has D, always missing RV64) on fcvt.l.h*, fcvt.lu.h* Nevertheless, the incorrect macros are not preventing me from building and running the tests. The new tests pass on CORE-V Wally. |
Would you mind submitting a PR for the bugs you found?
…On Mon, Mar 25, 2024 at 6:04 AM David Harris ***@***.***> wrote:
This fix to RVTEST_ISA looks good.
There is still an inconsistency between the check ISA lines in
fcvt.h.l_b25 and _b26. The instruction should depend on RV64, so I think
the _b25 line should add *RV64 to match _b26.
RVTEST_CASE(0,"//check ISA:=regex(.*I.*F.*Zfh.*);def
TEST_CASE_1=True;",fcvt.h.l_b25)
RVTEST_CASE(0,"//check ISA:=regex(.*RV64.*I.*F.*Zfh.*);def
TEST_CASE_1=True;",fcvt.h.l_b26)
The same applies to fcvt.h.lu_b25.
The check ISA is also wrong (usually has D, always missing RV64) on
fcvt.l.h*, fcvt.lu.h*
Nevertheless, the incorrect macros are not preventing me from building and
running the tests. The new tests pass on CORE-V Wally.
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJUIRO7BKKAISLMCCZ3Y2AOHJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJXHE3DKOBZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Zfh isn’t in the repo yet, so I don’t know how to do a PR on a PR. Could you either accept PR367 and I’ll do a PR with these fixes, or anuani could incorporate fixes into PR367?
David
… On Mar 25, 2024, at 8:01 AM, Allen Baum ***@***.***> wrote:
Would you mind submitting a PR for the bugs you found?
On Mon, Mar 25, 2024 at 6:04 AM David Harris ***@***.***>
wrote:
> This fix to RVTEST_ISA looks good.
>
> There is still an inconsistency between the check ISA lines in
> fcvt.h.l_b25 and _b26. The instruction should depend on RV64, so I think
> the _b25 line should add *RV64 to match _b26.
>
> RVTEST_CASE(0,"//check ISA:=regex(.*I.*F.*Zfh.*);def
> TEST_CASE_1=True;",fcvt.h.l_b25)
> RVTEST_CASE(0,"//check ISA:=regex(.*RV64.*I.*F.*Zfh.*);def
> TEST_CASE_1=True;",fcvt.h.l_b26)
>
> The same applies to fcvt.h.lu_b25.
>
> The check ISA is also wrong (usually has D, always missing RV64) on
> fcvt.l.h*, fcvt.lu.h*
>
> Nevertheless, the incorrect macros are not preventing me from building and
> running the tests. The new tests pass on CORE-V Wally.
>
> —
> Reply to this email directly, view it on GitHub
> <#367 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHPXVJUIRO7BKKAISLMCCZ3Y2AOHJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJXHE3DKOBZGI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub <#367 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AR4AA34N4OT4TV6PVRBZ77TY2A325AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYGIYDOOBXGQ>.
You are receiving this because you were mentioned.
|
Oh, and anuani21 - thanks for figuring out what the problem is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, and thanks for figuring out what the problem was. I would ask that you back out the changes in the comments however, as the clutter up the diff. We can merge it as soon as that is done.
yes. I want some changes to the PR #367 first though, to back out changes
to the comments.
Those are unnecessary, and clutter up the diff - and will clutter the diff
up again if someone regenerates the tests, so it should ust be left
along (and, yes, I know I can filter out comments fro the diff...)
On Mon, Mar 25, 2024 at 8:06 AM David Harris ***@***.***>
wrote:
… Zfh isn’t in the repo yet, so I don’t know how to do a PR on a PR. Could
you either accept PR367 and I’ll do a PR with these fixes, or anuani could
incorporate fixes into PR367?
David
> On Mar 25, 2024, at 8:01 AM, Allen Baum ***@***.***> wrote:
>
>
> Would you mind submitting a PR for the bugs you found?
>
> On Mon, Mar 25, 2024 at 6:04 AM David Harris ***@***.***>
> wrote:
>
> > This fix to RVTEST_ISA looks good.
> >
> > There is still an inconsistency between the check ISA lines in
> > fcvt.h.l_b25 and _b26. The instruction should depend on RV64, so I
think
> > the _b25 line should add *RV64 to match _b26.
> >
> > RVTEST_CASE(0,"//check ISA:=regex(.*I.*F.*Zfh.*);def
> > TEST_CASE_1=True;",fcvt.h.l_b25)
> > RVTEST_CASE(0,"//check ISA:=regex(.*RV64.*I.*F.*Zfh.*);def
> > TEST_CASE_1=True;",fcvt.h.l_b26)
> >
> > The same applies to fcvt.h.lu_b25.
> >
> > The check ISA is also wrong (usually has D, always missing RV64) on
> > fcvt.l.h*, fcvt.lu.h*
> >
> > Nevertheless, the incorrect macros are not preventing me from building
and
> > running the tests. The new tests pass on CORE-V Wally.
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
#367 (comment)>,
> > or unsubscribe
> > <
https://github.com/notifications/unsubscribe-auth/AHPXVJUIRO7BKKAISLMCCZ3Y2AOHJAVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJXHE3DKOBZGI>
> > .
> > You are receiving this because you were mentioned.Message ID:
> > ***@***.***>
> >
> —
> Reply to this email directly, view it on GitHub <
#367 (comment)>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AR4AA34N4OT4TV6PVRBZ77TY2A325AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYGIYDOOBXGQ>.
> You are receiving this because you were mentioned.
>
—
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJRFC5UO6K5IBK4ZKP3Y2A4O7AVCNFSM6AAAAAAZ37DUD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYGIZDAMBZGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
on further reflection, the changes I asked for aren't necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This unneccessarily (in my opinion, anyway) edits comments - but I don't think that will cause future problem. It also has a simple fix for the issues that were seen. We may want further tests in the future to more carefully look at corner cases for better coverage, but this is at a minimum a good start
sigh: as usual, we have a conflict with the changelog version. It needs to be updated. |
@allenjbaum, I have updated the changelog file. Please have your review and let us know if more information would help. Hereafter, I will raise the PR with target branch as dev. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the problem, and the previous fixes the earlier problem of specifying D support for an extension that doesn't need it.
Just one question about this: (there is a |
Description
Related Issues
NA
Ratified/Unratified Extensions
[✓] Ratified
List Extensions
Reference Model Used
[✓] SAIL
Mandatory Checklist:
Ran reports are placed here
https://gitlab.com/ptprasanna/actreports.git