Skip to content

Commit

Permalink
tests/fp: add fp-bench
Browse files Browse the repository at this point in the history
These microbenchmarks will allow us to measure the performance impact of
FP emulation optimizations. Note that we can measure both directly the impact
on the softfloat functions (with "-t soft"), or the impact on an
emulated workload (call with "-t host" and run under qemu user-mode).

Reviewed-by: Alex Bennée <[email protected]>
Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
  • Loading branch information
cota authored and stsquad committed Dec 17, 2018
1 parent 315df0d commit 25f539f
Show file tree
Hide file tree
Showing 3 changed files with 635 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/fp/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fp-test
fp-bench
5 changes: 4 additions & 1 deletion tests/fp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ TF_OBJS_LIB += $(TF_OBJS_WRITECASE)
TF_OBJS_LIB += testLoops_common.o
TF_OBJS_LIB += $(TF_OBJS_TEST)

BINARIES := fp-test$(EXESUF)
BINARIES := fp-test$(EXESUF) fp-bench$(EXESUF)

# everything depends on config-host.h because platform.h includes it
all: $(BUILD_DIR)/config-host.h
Expand Down Expand Up @@ -590,10 +590,13 @@ $(TF_OBJS_LIB) slowfloat.o: %.o: $(TF_SOURCE_DIR)/%.c

libtestfloat.a: $(TF_OBJS_LIB)

fp-bench$(EXESUF): fp-bench.o $(QEMU_SOFTFLOAT_OBJ) $(LIBQEMUUTIL)

clean:
rm -f *.o *.d $(BINARIES)
rm -f *.gcno *.gcda *.gcov
rm -f fp-test$(EXESUF)
rm -f fp-bench$(EXESUF)
rm -f libsoftfloat.a
rm -f libtestfloat.a

Expand Down
Loading

0 comments on commit 25f539f

Please sign in to comment.