| { | |
| "name": "reference_loop_113", | |
| "definition": "loop_113", | |
| "dataset": "simd-loop", | |
| "author": "reference", | |
| "spec": { | |
| "language": "cpp", | |
| "target_hardware": [ | |
| "aarch64" | |
| ], | |
| "entry_point": "kernel.cpp::inner_loop_113", | |
| "dependencies": [], | |
| "isa_features": [], | |
| "compile_flags": [ | |
| "-O2", | |
| "-std=c++14", | |
| "-fno-vectorize", | |
| "-fno-slp-vectorize" | |
| ], | |
| "link_flags": [] | |
| }, | |
| "sources": [ | |
| { | |
| "path": "loop_113.h", | |
| "content": "// Auto-generated by scripts/gen_simd_loop_harness.py \u2014 do not hand-edit.\n#pragma once\n#include <stdint.h>\n\nstruct loop_113_data {\n uint32_t *a0;\n uint32_t *b0;\n uint32_t *c0;\n uint64_t size;\n};\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\nint armbench_entry_loop_113(void *a0, void *b0, int64_t n, void *res_out);\n#ifdef __cplusplus\n}\n#endif\n" | |
| }, | |
| { | |
| "path": "loop_113.cpp", | |
| "content": "// Auto-generated by scripts/gen_simd_loop_harness.py \u2014 do not hand-edit.\n#include \"loop_113.h\"\n#include <stdint.h>\n\nextern \"C\" void inner_loop_113(struct loop_113_data *data);\n\nextern \"C\" int armbench_entry_loop_113(void *a0, void *b0, int64_t n, void *res_out) {\n struct loop_113_data data;\n data.a0 = static_cast<uint32_t *>(a0);\n data.b0 = static_cast<uint32_t *>(b0);\n data.c0 = static_cast<uint32_t *>(res_out);\n data.size = static_cast<uint64_t>(n);\n inner_loop_113(&data);\n return 0;\n}\n" | |
| }, | |
| { | |
| "path": "kernel.cpp", | |
| "content": "#include \"loop_113.h\"\n#include <stdint.h>\n\nextern \"C\" void inner_loop_113(struct loop_113_data * input) {\n uint32_t * a = input->a0;\n uint32_t * b = input->b0;\n uint32_t * c = input->c0;\n uint64_t size = input->size;\n\n uint64_t i;\n\n for (i = 0; i < size; i += 2) {\n c[i] = a[i] + a[i + 1];\n c[i + 1] = b[i] + b[i + 1];\n }\n}\n" | |
| } | |
| ], | |
| "description": "Scalar reference (auto-vectorization disabled) for loop_113. Baseline for speedup measurement." | |
| } | |