projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid non-standard predefined macros
[riscv-tests.git]
/
benchmarks
/
common
/
crt.S
diff --git
a/benchmarks/common/crt.S
b/benchmarks/common/crt.S
index ea07099af31e393e44bfceabef4ac30311c9c829..de1d7281d3296695b7f1df41330f6858110ae5db 100644
(file)
--- a/
benchmarks/common/crt.S
+++ b/
benchmarks/common/crt.S
@@
-2,7
+2,7
@@
#include "encoding.h"
#include "encoding.h"
-#if
def __riscv
64
+#if
__riscv_xlen ==
64
# define LREG ld
# define SREG sd
# define REGBYTES 8
# define LREG ld
# define SREG sd
# define REGBYTES 8
@@
-56,7
+56,7
@@
_start:
# make sure XLEN agrees with compilation choice
csrr t0, misa
# make sure XLEN agrees with compilation choice
csrr t0, misa
-#if
def __riscv
64
+#if
__riscv_xlen ==
64
bltz t0, 1f
#else
bgez t0, 1f
bltz t0, 1f
#else
bgez t0, 1f