| { | |
| "name": "reference_loop_035", | |
| "definition": "loop_035", | |
| "dataset": "simd-loop", | |
| "author": "reference", | |
| "spec": { | |
| "language": "cpp", | |
| "target_hardware": [ | |
| "aarch64" | |
| ], | |
| "entry_point": "kernel.cpp::inner_loop_035", | |
| "dependencies": [], | |
| "isa_features": [], | |
| "compile_flags": [ | |
| "-O2", | |
| "-std=c++14", | |
| "-fno-vectorize", | |
| "-fno-slp-vectorize" | |
| ], | |
| "link_flags": [] | |
| }, | |
| "sources": [ | |
| { | |
| "path": "loop_035.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_035_data {\n float *a;\n float *b;\n float *c;\n int64_t n;\n};\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\nint armbench_entry_loop_035(void *a, void *b, int64_t n, void *res_out);\n#ifdef __cplusplus\n}\n#endif\n" | |
| }, | |
| { | |
| "path": "loop_035.cpp", | |
| "content": "// Auto-generated by scripts/gen_simd_loop_harness.py \u2014 do not hand-edit.\n#include \"loop_035.h\"\n#include <stdint.h>\n\nextern \"C\" void inner_loop_035(struct loop_035_data *data);\n\nextern \"C\" int armbench_entry_loop_035(void *a, void *b, int64_t n, void *res_out) {\n struct loop_035_data data;\n data.a = static_cast<float *>(a);\n data.b = static_cast<float *>(b);\n data.c = static_cast<float *>(res_out);\n data.n = static_cast<int64_t>(n);\n inner_loop_035(&data);\n return 0;\n}\n" | |
| }, | |
| { | |
| "path": "kernel.cpp", | |
| "content": "#include \"loop_035.h\"\n#include <stdint.h>\n\nextern \"C\" void inner_loop_035(struct loop_035_data * input) {\n float * a = input->a;\n float * b = input->b;\n float * c = input->c;\n int64_t n = input->n;\n\n for (int64_t i = 0; i < n; i++) {\n c[i] = a[i] + b[i];\n }\n}\n" | |
| } | |
| ], | |
| "description": "Scalar reference (auto-vectorization disabled) for loop_035. Baseline for speedup measurement." | |
| } | |