From 8dc15f4c5671762dbd3a34c9479d10a41355d6b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 10 Jul 2018 05:08:27 -0400 Subject: [PATCH] Fix ARMv7 detection after c6c44aa5d104 --- neon-simd.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/neon-simd.cpp b/neon-simd.cpp index af336115..2dd1fa27 100644 --- a/neon-simd.cpp +++ b/neon-simd.cpp @@ -82,12 +82,11 @@ bool CPU_ProbeARMv7() else { // ARMv7 added movt and movw - //int a; - //asm volatile("movw %0,%1 \n" - // "movt %0,%1 \n" - // : "=r"(a) : "i"(0x1234)); - //result = (a == 0x12341234); - return true; + int a; + asm volatile("movw %0,%1 \n" + "movt %0,%1 \n" + : "=r"(a) : "i"(0x1234)); + result = (a == 0x12341234); } sigprocmask(SIG_SETMASK, (sigset_t*)&oldMask, NULLPTR);