sdrangel/cmake/test/test_x86_sse2.cxx

15 wiersze
252 B
C++

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