Deleted Added
full compact
32c32
< __FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-fma.c 226602 2011-10-21 06:32:54Z das $");
---
> __FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-fma.c 251024 2013-05-27 08:50:10Z das $");
79a80,85
> * This is needed because clang constant-folds fma in ways that are incorrect
> * in rounding modes other than FE_TONEAREST.
> */
> volatile double one = 1.0;
>
> /*
111,113c117,119
< testall(-1.0, 1.0, 1.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0);
< testall(1.0, -1.0, 1.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0);
< testall(-1.0, -1.0, -1.0, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0);
---
> testall(-one, one, one, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0);
> testall(one, -one, one, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0);
> testall(-one, -one, -one, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0);
193c199
< test(fmaf, 1.0, 1.0, 0x1.0p-100, 1.0 + FLT_EPSILON,
---
> test(fmaf, one, one, 0x1.0p-100, 1.0 + FLT_EPSILON,
195c201
< test(fma, 1.0, 1.0, 0x1.0p-200, 1.0 + DBL_EPSILON,
---
> test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON,
197c203
< test(fmal, 1.0, 1.0, 0x1.0p-200, 1.0 + LDBL_EPSILON,
---
> test(fmal, one, one, 0x1.0p-200, 1.0 + LDBL_EPSILON,
200c206
< testall(0x1.0p100, 1.0, 0x1.0p-100, 0x1.0p100,
---
> testall(0x1.0p100, one, 0x1.0p-100, 0x1.0p100,
206c212
< test(fmaf, -1.0, 1.0, -0x1.0p-100, -(1.0 + FLT_EPSILON),
---
> test(fmaf, -one, one, -0x1.0p-100, -(1.0 + FLT_EPSILON),
208c214
< test(fma, -1.0, 1.0, -0x1.0p-200, -(1.0 + DBL_EPSILON),
---
> test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON),
210c216
< test(fmal, -1.0, 1.0, -0x1.0p-200, -(1.0 + LDBL_EPSILON),
---
> test(fmal, -one, one, -0x1.0p-200, -(1.0 + LDBL_EPSILON),
213c219
< testall(0x1.0p100, -1.0, -0x1.0p-100, -0x1.0p100,
---
> testall(0x1.0p100, -one, -0x1.0p-100, -0x1.0p100,
219c225
< test(fmaf, 1.0, 1.0, -0x1.0p-100, 1.0 - FLT_EPSILON / 2,
---
> test(fmaf, one, one, -0x1.0p-100, 1.0 - FLT_EPSILON / 2,
221c227
< test(fma, 1.0, 1.0, -0x1.0p-200, 1.0 - DBL_EPSILON / 2,
---
> test(fma, one, one, -0x1.0p-200, 1.0 - DBL_EPSILON / 2,
223c229
< test(fmal, 1.0, 1.0, -0x1.0p-200, 1.0 - LDBL_EPSILON / 2,
---
> test(fmal, one, one, -0x1.0p-200, 1.0 - LDBL_EPSILON / 2,
226c232
< testall(0x1.0p100, 1.0, -0x1.0p-100, 0x1.0p100,
---
> testall(0x1.0p100, one, -0x1.0p-100, 0x1.0p100,
232c238
< test(fmaf, -1.0, 1.0, 0x1.0p-100, -1.0 + FLT_EPSILON / 2,
---
> test(fmaf, -one, one, 0x1.0p-100, -1.0 + FLT_EPSILON / 2,
234c240
< test(fma, -1.0, 1.0, 0x1.0p-200, -1.0 + DBL_EPSILON / 2,
---
> test(fma, -one, one, 0x1.0p-200, -1.0 + DBL_EPSILON / 2,
236c242
< test(fmal, -1.0, 1.0, 0x1.0p-200, -1.0 + LDBL_EPSILON / 2,
---
> test(fmal, -one, one, 0x1.0p-200, -1.0 + LDBL_EPSILON / 2,
239c245
< testall(-0x1.0p100, 1.0, 0x1.0p-100, -0x1.0p100,
---
> testall(-0x1.0p100, one, 0x1.0p-100, -0x1.0p100,