Beispiel #1
0
int test_mm_cvttsd_si32(__m128d A) {
  // DAG-LABEL: test_mm_cvttsd_si32
  // DAG: extractelement <2 x double> %{{.*}}, i32 0
  // DAG: fptosi double %{{.*}} to i32
  //
  // ASM-LABEL: test_mm_cvttsd_si32
  // ASM: cvttsd2si
  return _mm_cvttsd_si32(A);
}
inline int FloatToInt( double x ) 
{
	return _mm_cvttsd_si32( _mm_load_sd( &x) );
}