Skip to content

Commit

Permalink
Avoid deprecated "b" pseudo-op; use "j" instead
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Jan 5, 2015
1 parent 6eb5000 commit 350b03e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions benchmarks/dhrystone/dhrystone_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ int main (int argc, char** argv)
do_fprintf (stderr, "Arr_2_Glob[8][7]: %d\n", Arr_2_Glob[8][7]);
do_fprintf (stderr, " should be: Number_Of_Runs + 10\n");
do_fprintf (stderr, "Ptr_Glob->\n");
do_fprintf (stderr, " Ptr_Comp: %d\n", (int) Ptr_Glob->Ptr_Comp);
do_fprintf (stderr, " Ptr_Comp: %d\n", (long) Ptr_Glob->Ptr_Comp);
do_fprintf (stderr, " should be: (implementation-dependent)\n");
do_fprintf (stderr, " Discr: %d\n", Ptr_Glob->Discr);
do_fprintf (stderr, " should be: %d\n", 0);
Expand All @@ -252,7 +252,7 @@ int main (int argc, char** argv)
do_fprintf (stderr, " Str_Comp: %s\n", Ptr_Glob->variant.var_1.Str_Comp);
do_fprintf (stderr, " should be: DHRYSTONE PROGRAM, SOME STRING\n");
do_fprintf (stderr, "Next_Ptr_Glob->\n");
do_fprintf (stderr, " Ptr_Comp: %d\n", (int) Next_Ptr_Glob->Ptr_Comp);
do_fprintf (stderr, " Ptr_Comp: %d\n", (long) Next_Ptr_Glob->Ptr_Comp);
do_fprintf (stderr, " should be: (implementation-dependent), same as above\n");
do_fprintf (stderr, " Discr: %d\n", Next_Ptr_Glob->Discr);
do_fprintf (stderr, " should be: %d\n", 0);
Expand Down
2 changes: 1 addition & 1 deletion env
Submodule env updated from 9be353 to 1a9580
4 changes: 2 additions & 2 deletions isa/macros/scalar/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ test_ ## testnum: \
fsflags x0; \
fmv.x.s a0, f0; \
bne a0, a3, fail; \
b 1f; \
j 1f; \
.align 2; \
test_ ## testnum ## _data: \
.float result; \
Expand All @@ -556,7 +556,7 @@ test_ ## testnum: \
fsflags x0; \
fmv.x.d a0, f0; \
bne a0, a3, fail; \
b 1f; \
j 1f; \
.align 3; \
test_ ## testnum ## _data: \
.double result; \
Expand Down
8 changes: 4 additions & 4 deletions isa/macros/vector/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ skip ## testnum : \
addi a4,a4,4; \
addi a2,a2,1; \
bne a2,a3,test_loop ## testnum; \
b 1f; \
j 1f; \
vtcode ## testnum : \
code; \
stop; \
Expand Down Expand Up @@ -287,7 +287,7 @@ skip ## testnum : \
addi a4,a4,8; \
addi a2,a2,1; \
bne a2,a3,test_loop ## testnum; \
b 1f; \
j 1f; \
vtcode ## testnum : \
code; \
stop; \
Expand Down Expand Up @@ -361,7 +361,7 @@ skip ## testnum : \
addi a4,a4,4; \
addi a2,a2,1; \
bne a2,a3,test_loop ## testnum; \
b 1f; \
j 1f; \
vtcode ## testnum : \
li x1, val1; \
inst f0, x1; \
Expand Down Expand Up @@ -394,7 +394,7 @@ skip ## testnum : \
addi a4,a4,8; \
addi a2,a2,1; \
bne a2,a3,test_loop ## testnum; \
b 1f; \
j 1f; \
vtcode ## testnum : \
li x1, val1; \
inst f0, x1; \
Expand Down
4 changes: 2 additions & 2 deletions isa/rv64si/ipi.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RVTEST_CODE_BEGIN
add a0, a0, 1
rem a0, a0, a3
csrw send_ipi, a0
1: b 1b
1: j 1b

handler:
csrr a0, hartid
Expand All @@ -44,7 +44,7 @@ RVTEST_CODE_BEGIN
2: add a0, a0, 1
rem a0, a0, a3
csrw send_ipi, a0
1: b 1b
1: j 1b

RVTEST_CODE_END

Expand Down
2 changes: 1 addition & 1 deletion isa/rv64uf/structural.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ li x1, 0x3F800000
fmv.s.x f3, x0 ;\
fmv.d.x f2, x2 ;\
fmv.s.x f1, x1 ;\
b 1f ;\
j 1f ;\
.align 5 ;\
1:fmul.d f4, f2, f2 ;\
nops ;\
Expand Down

0 comments on commit 350b03e

Please sign in to comment.