Lines Matching refs:ASSERT_FP_EQ
43 ASSERT_FP_EQ(zero, func(zero, exp)); in testSpecialNumbers()
44 ASSERT_FP_EQ(neg_zero, func(neg_zero, exp)); in testSpecialNumbers()
45 ASSERT_FP_EQ(inf, func(inf, exp)); in testSpecialNumbers()
46 ASSERT_FP_EQ(neg_inf, func(neg_inf, exp)); in testSpecialNumbers()
47 ASSERT_FP_EQ(nan, func(nan, exp)); in testSpecialNumbers()
56 ASSERT_FP_EQ(T(val << exp), func(T(val), exp)); in testPowersOfTwo()
57 ASSERT_FP_EQ(T(-1 * (val << exp)), func(T(-val), exp)); in testPowersOfTwo()
65 ASSERT_FP_EQ(inf, func(T(x), exp)); in testOverflow()
66 ASSERT_FP_EQ(neg_inf, func(-T(x), exp)); in testOverflow()
79 ASSERT_FP_EQ(func(x, -exp), x > 0 ? zero : neg_zero); in testUnderflowToZeroOnNormal()
92 ASSERT_FP_EQ(func(x, -exp), x > 0 ? zero : neg_zero); in testUnderflowToZeroOnSubnormal()
108 ASSERT_FP_EQ(func(x, exp), x * (UIntType(1) << exp)); in testNormalOperation()
109 ASSERT_FP_EQ(func(x, -exp), x / (UIntType(1) << exp)); in testNormalOperation()
115 ASSERT_FP_EQ(func(x, -1), x / 2); in testNormalOperation()
116 ASSERT_FP_EQ(func(-x, -1), -x / 2); in testNormalOperation()
140 ASSERT_FP_EQ(func(x, exp), inf); in testNormalOperation()