Paste: testcase

Author: slava
Mode: factor
Date: Thu, 1 Oct 2009 23:55:11
Plain Text |
#include <xmmintrin.h>
#include <stdio.h>

int main()
{
	_MM_SET_EXCEPTION_MASK(_MM_GET_EXCEPTION_MASK() & ~(_MM_MASK_DIV_ZERO));
	double a = 1.0;
	double b = 0.0;
	__asm__("divsd %1, %0" : "+x" (a) : "x" (b));
	printf("%f\n",a);
	return 0;
}

New Annotation

Summary:
Author:
Mode:
Body: