mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-27 15:26:33 -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 <arm_neon.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
|
void signalHandler(int signum) {
|
||||||
|
exit(signum); // SIGILL = 4
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
signal(SIGILL, signalHandler);
|
||||||
uint32x4_t x={0};
|
uint32x4_t x={0};
|
||||||
x=veorq_u32(x,x);
|
x=veorq_u32(x,x);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user