Skip to content

Commit

Permalink
Update arch_test.h
Browse files Browse the repository at this point in the history
Split lines in Load macro.

Signed-off-by: S Pawan Kumar <[email protected]>
  • Loading branch information
pawks authored Aug 16, 2022
1 parent 6a179cd commit ea3f151
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions riscv-test-suite/env/arch_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,10 @@ nop ;\
csrr flagreg, fcsr ;\
RVTEST_SIGUPD(swreg,flagreg,offset+SIGALIGN)

#define TEST_LOAD_F(swreg,testreg,fcsr_val,rs1,destreg,imm_val,inst,adj,flagreg) ;\
LA(rs1,rvtest_data+adj-imm_val) ;\
LI(testreg, fcsr_val); csrw fcsr, testreg ;\
#define TEST_LOAD_F(swreg,testreg,fcsr_val,rs1,destreg,imm_val,inst,adj,flagreg) ;\
LA(rs1,rvtest_data+adj-imm_val) ;\
LI(testreg, fcsr_val) ;\
csrw fcsr, testreg ;\
inst destreg, imm_val(rs1) ;\
nop ;\
nop ;\
Expand Down

1 comment on commit ea3f151

@allenjbaum
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good now

Please sign in to comment.