1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 12:51:49 -05:00
sdrangel/cmake/test/test_x86_sse3.cxx

16 lines
272 B
C++

#include <signal.h>
#include <emmintrin.h>
#include <pmmintrin.h>
void signalHandler(int signum) {
exit(signum); // SIGILL = 4
}
int main(int argc, char* argv[])
{
signal(SIGILL, signalHandler);
__m128d x = _mm_setzero_pd();
x=_mm_addsub_pd(x,x);
return 0;
}