aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVincent Belliard <vincent.belliard@arm.com>2016-07-14 10:04:09 -0700
committerPierre Langlois <pierre.langlois@arm.com>2016-09-05 18:02:23 +0100
commit32cf254c0b40b0908b7459060647c57a1bb78ee7 (patch)
tree850ab50a2cf05cd041c99ff817a1173fceb4ee70 /tools
parentc1253076fe09d5249e4d3275ecde5dd6d0c5b475 (diff)
Add benchmarks for AArch32
This commits adds benchmarks similar to what we have for AArch64: - bench-branch-link: Emit a lot of branches to force veneers being emitted. - bench-branch: Exercise label binding and relative address patching. - bench-dataop: Assemble "add r0, r1, r2" many times in a buffer. This is a reland of those benchmarks. There were build issues with the previous commit because the "vixl" namespace was not included. The benchmarks were also using an API for setting the ISA was was removed. Change-Id: I5f41f8ca2302264dd5595626f99d200d64108120
Diffstat (limited to 'tools')
-rwxr-xr-xtools/clang_format.py3
-rw-r--r--tools/config.py1
-rwxr-xr-xtools/test.py5
3 files changed, 8 insertions, 1 deletions
diff --git a/tools/clang_format.py b/tools/clang_format.py
index f82f2578..3509bb5f 100755
--- a/tools/clang_format.py
+++ b/tools/clang_format.py
@@ -174,7 +174,8 @@ def Find(path, filters = ['*']):
def GetCppSourceFilesToFormat():
sources = []
- source_dirs = [config.dir_aarch32_examples,
+ source_dirs = [config.dir_aarch32_benchmarks,
+ config.dir_aarch32_examples,
config.dir_aarch64_benchmarks,
config.dir_aarch64_examples,
config.dir_src_vixl ]
diff --git a/tools/config.py b/tools/config.py
index e595e467..807fa9a2 100644
--- a/tools/config.py
+++ b/tools/config.py
@@ -34,6 +34,7 @@ dir_build_latest = os.path.join(dir_build, 'latest')
dir_src_vixl = os.path.join(dir_root, 'src')
dir_tests = os.path.join(dir_root, 'test')
dir_aarch64_benchmarks = os.path.join(dir_root, 'benchmarks', 'aarch64')
+dir_aarch32_benchmarks = os.path.join(dir_root, 'benchmarks', 'aarch32')
dir_aarch64_examples = os.path.join(dir_root, 'examples', 'aarch64')
dir_aarch32_examples = os.path.join(dir_root, 'examples', 'aarch32')
dir_aarch64_traces = os.path.join(dir_tests, 'aarch64', 'traces')
diff --git a/tools/test.py b/tools/test.py
index d92f7081..145d69ed 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -341,6 +341,11 @@ def BuildAll(build_options, jobs):
def RunBenchmarks():
rc = 0
+ benchmark_names = util.ListCCFilesWithoutExt(config.dir_aarch32_benchmarks)
+ for bench in benchmark_names:
+ rc |= RunCommand(
+ [os.path.realpath(
+ join(config.dir_build_latest, 'benchmarks/aarch32', bench))])
benchmark_names = util.ListCCFilesWithoutExt(config.dir_aarch64_benchmarks)
for bench in benchmark_names:
rc |= RunCommand(