mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-24 05:08:37 -04:00
cmake armv7 SIMD test programs: avoid possible core dumps by catching SIGILL
This commit is contained in:
parent
547ee8444f
commit
3c8eb44abf
@ -1,8 +1,15 @@
|
||||
#include <arm_neon.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user