From 3c8eb44abf968ab8b65c136e95f7f8077ad83e9c Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 23 Apr 2019 09:49:58 +0200 Subject: [PATCH] cmake armv7 SIMD test programs: avoid possible core dumps by catching SIGILL --- cmake/test/test_arm_neon.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/test/test_arm_neon.cxx b/cmake/test/test_arm_neon.cxx index d80ecedfa..f0e7dea33 100644 --- a/cmake/test/test_arm_neon.cxx +++ b/cmake/test/test_arm_neon.cxx @@ -1,8 +1,15 @@ #include #include +#include +#include + +void signalHandler(int signum) { + exit(signum); // SIGILL = 4 +} int main(int argc, char* argv[]) { + signal(SIGILL, signalHandler); uint32x4_t x={0}; x=veorq_u32(x,x); return 0;