aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2015-07-01 15:59:11 -0700
committerChristopher Celio <celio@eecs.berkeley.edu>2015-07-01 15:59:11 -0700
commitbd0e7cdcfeca6be730f8b15959b8c5369bde3906 (patch)
tree6e88795dc25818a93d01bf410edc422e3263f6ec /benchmarks/common
parent80538e49f76fca845e1aa45e6033cd7648975779 (diff)
downloadriscv-tests-bd0e7cdcfeca6be730f8b15959b8c5369bde3906.zip
riscv-tests-bd0e7cdcfeca6be730f8b15959b8c5369bde3906.tar.gz
riscv-tests-bd0e7cdcfeca6be730f8b15959b8c5369bde3906.tar.bz2
Add _hard_float check in crt.S.
Diffstat (limited to 'benchmarks/common')
-rw-r--r--benchmarks/common/crt.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S
index dc16228..bd27f6f 100644
--- a/benchmarks/common/crt.S
+++ b/benchmarks/common/crt.S
@@ -86,6 +86,7 @@ _start:
and t1, t0, t1
beqz t1, 1f
+#ifdef __riscv_hard_float
fssr x0
fmv.s.x f0, x0
fmv.s.x f1, x0
@@ -119,6 +120,8 @@ _start:
fmv.s.x f29,x0
fmv.s.x f30,x0
fmv.s.x f31,x0
+#endif
+
1:
# initialize global pointer