File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -31,22 +31,26 @@ TEST_F(LlvmLibcAsinTest, SpecialNumbers) {
31
31
32
32
using namespace LIBC_NAMESPACE ::testing;
33
33
34
+ // With FTZ/DAZ flags are set, when the inputs are denormal, the output bit
35
+ // pattern might not be exactly 0, but they should all be equal to 0 as floating
36
+ // points.
37
+
34
38
TEST_F (LlvmLibcAsinTest, FTZMode) {
35
39
ModifyMXCSR mxcsr (FTZ);
36
40
37
- EXPECT_FP_EQ (zero, LIBC_NAMESPACE::asin (min_denormal));
41
+ EXPECT_TRUE (zero == LIBC_NAMESPACE::asin (min_denormal));
38
42
}
39
43
40
44
TEST_F (LlvmLibcAsinTest, DAZMode) {
41
45
ModifyMXCSR mxcsr (DAZ);
42
46
43
- EXPECT_FP_EQ (zero, LIBC_NAMESPACE::asin (min_denormal));
47
+ EXPECT_TRUE (zero == LIBC_NAMESPACE::asin (min_denormal));
44
48
}
45
49
46
50
TEST_F (LlvmLibcAsinTest, FTZDAZMode) {
47
51
ModifyMXCSR mxcsr (FTZ | DAZ);
48
52
49
- EXPECT_FP_EQ (zero, LIBC_NAMESPACE::asin (min_denormal));
53
+ EXPECT_TRUE (zero == LIBC_NAMESPACE::asin (min_denormal));
50
54
}
51
55
52
56
#endif
You can’t perform that action at this time.
0 commit comments