Commits

Anonymous committed 0c6a16a

Add defines around neon code.

Merge from internal master.

(cherry-picked from commit e5282ae49814c9ed0b9bdec920a20e6978349327)

Change-Id: I00bf68545987ef360fe489b14df8e11fdd7b687b

Comments (0)

Files changed (1)

tests/memtest/bandwidth.h

 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"
 
 
             "ldmfd sp!, {r0,r1,r2,r3,r4}\n"
         :: "r" (_buffer), "r" (_size), "r" (num_loops) : "r0", "r1", "r2");
+#endif
     }
 };
 
 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"
 
 
             "ldmfd sp!, {r0,r1,r2,r3,r4}\n"
         :: "r" (_buffer), "r" (_size), "r" (num_loops) : "r0", "r1", "r2");
+#endif
     }
 };