diff options
author | Christopher Ferris <cferris@google.com> | 2013-04-24 23:53:10 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-04-24 23:53:10 +0000 |
commit | c3004a7b5c1bc83440d45d6f56627708517d8711 (patch) | |
tree | 4c7da02fcfc3aac5ce386279916136b9b129f609 | |
parent | fd17d874d61021db7e7580b19b8b17b6e1da2ab8 (diff) | |
parent | 0c6a16a5153417696ea7861087a2bab7a42fd533 (diff) | |
download | extras-c3004a7b5c1bc83440d45d6f56627708517d8711.tar.gz |
Merge "Add defines around neon code."
-rw-r--r-- | tests/memtest/bandwidth.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/memtest/bandwidth.h b/tests/memtest/bandwidth.h index 34cf7742..cef5cdd5 100644 --- a/tests/memtest/bandwidth.h +++ b/tests/memtest/bandwidth.h @@ -445,6 +445,7 @@ public: protected: // Write a given value using vst. void bench(size_t num_loops) { +#if defined(__ARM_NEON__) asm volatile( "stmfd sp!, {r0,r1,r2,r3,r4}\n" @@ -473,6 +474,7 @@ protected: "ldmfd sp!, {r0,r1,r2,r3,r4}\n" :: "r" (_buffer), "r" (_size), "r" (num_loops) : "r0", "r1", "r2"); +#endif } }; @@ -486,6 +488,7 @@ public: protected: // Write a given value using vstmia. void bench(size_t num_loops) { +#if defined(__ARM_NEON__) asm volatile( "stmfd sp!, {r0,r1,r2,r3,r4}\n" @@ -514,6 +517,7 @@ protected: "ldmfd sp!, {r0,r1,r2,r3,r4}\n" :: "r" (_buffer), "r" (_size), "r" (num_loops) : "r0", "r1", "r2"); +#endif } }; |