__m128d test_mm_fnmsub_pd(__m128d a, __m128d b, __m128d c) { // CHECK-LABEL: test_mm_fnmsub_pd // CHECK: [[NEG:%.+]] = fsub <2 x double> <double -0.000000e+00, double -0.000000e+00>, %{{.+}} // CHECK: [[NEG2:%.+]] = fsub <2 x double> <double -0.000000e+00, double -0.000000e+00>, %{{.+}} // CHECK: @llvm.x86.fma.vfmadd.pd(<2 x double> [[NEG]], <2 x double> %{{.+}}, <2 x double> [[NEG2]]) return _mm_fnmsub_pd(a, b, c); }
void check_mm_fnmsub_pd (__m128d __A, __m128d __B, __m128d __C) { union128d a, b, c, e; a.x = __A; b.x = __B; c.x = __C; double d[2]; int i; e.x = _mm_fnmsub_pd (__A, __B, __C); for (i = 0; i < 2; i++) { d[i] = -a.a[i] * b.a[i] - c.a[i]; } if (check_union128d (e, d)) abort (); }
__m128d test_mm_fnmsub_pd(__m128d a, __m128d b, __m128d c) { // CHECK: @llvm.x86.fma.vfnmsub.pd return _mm_fnmsub_pd(a, b, c); }
__m128d check_mm_fnmsub_pd (__m128d a, __m128d b, __m128d c) { return _mm_fnmsub_pd (a, b, c); }