| /llvm-project-15.0.7/flang/test/Evaluate/ |
| H A D | fold-nearest.f90 | 12 logical, parameter :: test_5 = nearest(inf, 1.) == inf 14 logical, parameter :: test_6 = nearest(-inf, -1.) == -inf 38 real, parameter :: inf = 1. / 0. variable 39 logical, parameter :: test_5 = ieee_next_after(inf, inf) == inf 40 logical, parameter :: test_6 = ieee_next_after(inf, -inf) == inf 41 logical, parameter :: test_7 = ieee_next_after(-inf, inf) == -inf 42 logical, parameter :: test_8 = ieee_next_after(-inf, -1.) == -inf 71 logical, parameter :: test_7 = ieee_next_up(inf) == inf 73 logical, parameter :: test_8 = ieee_next_down(inf) == inf 75 logical, parameter :: test_9 = ieee_next_up(-inf) == -inf [all …]
|
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | FMaxTest.h | 25 EXPECT_FP_EQ(inf, func(aNaN, inf)); in testNaN() 35 EXPECT_FP_EQ(inf, func(neg_inf, inf)); in testInfArg() 36 EXPECT_FP_EQ(inf, func(inf, 0.0)); in testInfArg() 37 EXPECT_FP_EQ(inf, func(-0.0, inf)); in testInfArg() 38 EXPECT_FP_EQ(inf, func(inf, T(1.2345))); in testInfArg() 39 EXPECT_FP_EQ(inf, func(T(-1.2345), inf)); in testInfArg() 43 EXPECT_FP_EQ(inf, func(inf, neg_inf)); in testNegInfArg()
|
| H A D | FDimTest.h | 23 EXPECT_FP_EQ(nan, func(nan, inf)); in test_na_n_arg() 33 EXPECT_FP_EQ(zero, func(neg_inf, inf)); in test_inf_arg() 34 EXPECT_FP_EQ(inf, func(inf, zero)); in test_inf_arg() 35 EXPECT_FP_EQ(zero, func(neg_zero, inf)); in test_inf_arg() 36 EXPECT_FP_EQ(inf, func(inf, T(1.2345))); in test_inf_arg() 37 EXPECT_FP_EQ(zero, func(T(-1.2345), inf)); in test_inf_arg() 41 EXPECT_FP_EQ(inf, func(inf, neg_inf)); in test_neg_inf_arg() 43 EXPECT_FP_EQ(inf, func(neg_zero, neg_inf)); in test_neg_inf_arg() 45 EXPECT_FP_EQ(inf, func(T(1.2345), neg_inf)); in test_neg_inf_arg() 78 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); variable
|
| H A D | FModTest.h | 57 TEST_SPECIAL(inf, 3.0, nl::quiet_NaN(), true, FE_INVALID); in testSpecialNumbers() 58 TEST_SPECIAL(inf, -1.1L, nl::quiet_NaN(), true, FE_INVALID); in testSpecialNumbers() 59 TEST_SPECIAL(inf, 0.0, nl::quiet_NaN(), true, FE_INVALID); in testSpecialNumbers() 64 TEST_SPECIAL(inf, inf, nl::quiet_NaN(), true, FE_INVALID); in testSpecialNumbers() 65 TEST_SPECIAL(inf, neg_inf, nl::quiet_NaN(), true, FE_INVALID); in testSpecialNumbers() 75 TEST_SPECIAL(neg_inf, inf, nl::quiet_NaN(), true, FE_INVALID); in testSpecialNumbers() 97 TEST_SPECIAL(0.0, inf, 0.0, false, 0); in testSpecialNumbers() 98 TEST_SPECIAL(neg_zero, inf, neg_zero, false, 0); in testSpecialNumbers() 100 TEST_SPECIAL(nl::min(), inf, nl::min(), false, 0); in testSpecialNumbers() 101 TEST_SPECIAL(nl::max(), inf, nl::max(), false, 0); in testSpecialNumbers() [all …]
|
| H A D | FmaTest.h | 27 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); variable 45 EXPECT_FP_EQ(func(inf, inf, zero), inf); in test_special_numbers() 46 EXPECT_FP_EQ(func(neg_inf, inf, neg_inf), neg_inf); in test_special_numbers() 47 EXPECT_FP_EQ(func(inf, zero, zero), nan); in test_special_numbers() 48 EXPECT_FP_EQ(func(inf, neg_inf, inf), nan); in test_special_numbers() 49 EXPECT_FP_EQ(func(nan, zero, inf), nan); in test_special_numbers() 50 EXPECT_FP_EQ(func(inf, neg_inf, nan), nan); in test_special_numbers()
|
| H A D | FMinTest.h | 25 EXPECT_FP_EQ(inf, func(aNaN, inf)); in testNaN() 35 EXPECT_FP_EQ(neg_inf, func(neg_inf, inf)); in testInfArg() 36 EXPECT_FP_EQ(0.0, func(inf, 0.0)); in testInfArg() 37 EXPECT_FP_EQ(-0.0, func(-0.0, inf)); in testInfArg() 38 EXPECT_FP_EQ(T(1.2345), func(inf, T(1.2345))); in testInfArg() 39 EXPECT_FP_EQ(T(-1.2345), func(T(-1.2345), inf)); in testInfArg() 43 EXPECT_FP_EQ(neg_inf, func(inf, neg_inf)); in testNegInfArg()
|
| H A D | HypotTest.h | 28 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); variable 35 EXPECT_FP_EQ(func(inf, nan), inf); in test_special_numbers() 36 EXPECT_FP_EQ(func(nan, neg_inf), inf); in test_special_numbers() 37 EXPECT_FP_EQ(func(zero, inf), inf); in test_special_numbers() 38 EXPECT_FP_EQ(func(neg_inf, neg_zero), inf); in test_special_numbers()
|
| H A D | NextAfterTest.h | 31 const T inf = T(FPBits::inf()); variable 121 result = func(x, inf); in testBoundaries() 132 result = func(x, -inf); in testBoundaries() 139 result = func(x, inf); in testBoundaries() 140 ASSERT_FP_EQ(result, inf); in testBoundaries() 142 result = func(-x, -inf); in testBoundaries() 143 ASSERT_FP_EQ(result, -inf); in testBoundaries() 146 x = inf; in testBoundaries() 151 ASSERT_FP_EQ(func(x, inf), inf); in testBoundaries()
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator.cons/ |
| H A D | istream.pass.cpp | 24 std::istringstream inf; in main() local 25 std::istreambuf_iterator<char> i(inf); in main() 29 std::istringstream inf("a"); in main() local 30 std::istreambuf_iterator<char> i(inf); in main() 35 std::wistringstream inf; in main() local 36 std::istreambuf_iterator<wchar_t> i(inf); in main() 40 std::wistringstream inf(L"a"); in main() local 41 std::istreambuf_iterator<wchar_t> i(inf); in main()
|
| H A D | streambuf.pass.cpp | 28 std::istringstream inf; in main() local 29 std::istreambuf_iterator<char> i(inf.rdbuf()); in main() 33 std::istringstream inf("a"); in main() local 34 std::istreambuf_iterator<char> i(inf.rdbuf()); in main() 43 std::wistringstream inf; in main() local 44 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main() 48 std::wistringstream inf(L"a"); in main() local 49 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/complex.number/complex.ops/ |
| H A D | complex_times_complex.pass.cpp | 59 case inf: in test_edges() 79 case inf: in test_edges() 80 assert(classify(r) == inf); in test_edges() 90 case inf: in test_edges() 97 assert(classify(r) == inf); in test_edges() 99 case inf: in test_edges() 100 assert(classify(r) == inf); in test_edges() 106 assert(classify(r) == inf); in test_edges() 119 case inf: in test_edges() 139 case inf: in test_edges() [all …]
|
| H A D | complex_divide_complex.pass.cpp | 57 case inf: in test_edges() 72 assert(classify(r) == inf); in test_edges() 77 case inf: in test_edges() 88 case inf: in test_edges() 92 assert(classify(r) == inf); in test_edges() 95 assert(classify(r) == inf); in test_edges() 97 case inf: in test_edges() 117 case inf: in test_edges() 132 assert(classify(r) == inf); in test_edges() 137 case inf: in test_edges()
|
| /llvm-project-15.0.7/compiler-rt/test/builtins/Unit/ |
| H A D | muldc3_test.c | 24 return inf; in classify() 68 case inf: in test__muldc3() 95 case inf: in test__muldc3() 96 if (classify(r) != inf) in test__muldc3() 109 case inf: in test__muldc3() 117 if (classify(r) != inf) in test__muldc3() 120 case inf: in test__muldc3() 121 if (classify(r) != inf) in test__muldc3() 129 if (classify(r) != inf) in test__muldc3() 145 case inf: in test__muldc3() [all …]
|
| H A D | multc3_test.c | 25 return inf; in classify() 69 case inf: in test__multc3() 96 case inf: in test__multc3() 97 if (classify(r) != inf) in test__multc3() 110 case inf: in test__multc3() 118 if (classify(r) != inf) in test__multc3() 121 case inf: in test__multc3() 122 if (classify(r) != inf) in test__multc3() 130 if (classify(r) != inf) in test__multc3() 146 case inf: in test__multc3() [all …]
|
| H A D | mulsc3_test.c | 24 return inf; in classify() 68 case inf: in test__mulsc3() 99 case inf: in test__mulsc3() 100 if (classify(r) != inf) in test__mulsc3() 113 case inf: in test__mulsc3() 121 if (classify(r) != inf) in test__mulsc3() 124 case inf: in test__mulsc3() 125 if (classify(r) != inf) in test__mulsc3() 133 if (classify(r) != inf) in test__mulsc3() 149 case inf: in test__mulsc3() [all …]
|
| H A D | mulxc3_test.c | 29 return inf; in classify() 73 case inf: in test__mulxc3() 100 case inf: in test__mulxc3() 101 if (classify(r) != inf) in test__mulxc3() 114 case inf: in test__mulxc3() 122 if (classify(r) != inf) in test__mulxc3() 125 case inf: in test__mulxc3() 126 if (classify(r) != inf) in test__mulxc3() 134 if (classify(r) != inf) in test__mulxc3() 150 case inf: in test__mulxc3() [all …]
|
| H A D | divtc3_test.c | 29 return inf; in classify() 74 case inf: in test__divtc3() 92 if (classify(r) != inf) in test__divtc3() 105 case inf: in test__divtc3() 119 case inf: in test__divtc3() 123 if (classify(r) != inf) in test__divtc3() 127 if (classify(r) != inf) in test__divtc3() 130 case inf: in test__divtc3() 155 case inf: in test__divtc3() 173 if (classify(r) != inf) in test__divtc3() [all …]
|
| H A D | divxc3_test.c | 29 return inf; in classify() 73 case inf: in test__divxc3() 91 if (classify(r) != inf) in test__divxc3() 104 case inf: in test__divxc3() 118 case inf: in test__divxc3() 122 if (classify(r) != inf) in test__divxc3() 126 if (classify(r) != inf) in test__divxc3() 129 case inf: in test__divxc3() 154 case inf: in test__divxc3() 172 if (classify(r) != inf) in test__divxc3() [all …]
|
| H A D | divdc3_test.c | 24 return inf; in classify() 68 case inf: in test__divdc3() 86 if (classify(r) != inf) in test__divdc3() 99 case inf: in test__divdc3() 113 case inf: in test__divdc3() 117 if (classify(r) != inf) in test__divdc3() 121 if (classify(r) != inf) in test__divdc3() 124 case inf: in test__divdc3() 149 case inf: in test__divdc3() 167 if (classify(r) != inf) in test__divdc3() [all …]
|
| H A D | divsc3_test.c | 24 return inf; in classify() 68 case inf: in test__divsc3() 86 if (classify(r) != inf) in test__divsc3() 99 case inf: in test__divsc3() 113 case inf: in test__divsc3() 117 if (classify(r) != inf) in test__divsc3() 121 if (classify(r) != inf) in test__divsc3() 124 case inf: in test__divsc3() 149 case inf: in test__divsc3() 167 if (classify(r) != inf) in test__divsc3() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/ |
| H A D | istream.pass.cpp | 23 std::istringstream inf(" 1 23"); in main() local 24 std::istream_iterator<int> i(inf); in main() 26 assert(inf.peek() == ' '); in main() 27 assert(inf.good()); in main() 29 inf >> j; in main()
|
| /llvm-project-15.0.7/mlir/test/mlir-cpu-runner/ |
| H A D | math-polynomial-approx.mlir | 54 // CHECK: -inf 64 // CHECK: inf 69 // CHECK: -inf, nan, inf, 0.693147 93 // CHECK: -inf 103 // CHECK: inf 108 // CHECK: -inf, nan, inf, 1.58496 132 // CHECK: -inf 142 // CHECK: inf 147 // CHECK: -inf, nan, inf, 9.99995e-06 251 // CHECK: inf [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ConstProp/ |
| H A D | fma.ll | 128 ; -inf + inf --> NaN 138 ; inf + -inf --> NaN 148 ; -inf + inf --> NaN 158 ; inf + -inf --> NaN 168 ; 0 * -inf --> NaN 178 ; 0 * inf --> NaN 188 ; -inf * 0 --> NaN 198 ; inf * 0 --> NaN 208 ; -0 * -inf --> NaN 218 ; -0 * inf --> NaN [all …]
|
| /llvm-project-15.0.7/libc/AOR_v20.02/math/test/ |
| H A D | runulp.sh | 52 t log 0 inf 40000 57 t log2 0 inf 40000 60 t pow 0.5 2.0 x 0 inf 20000 61 t pow -0.5 -2.0 x 0 inf 20000 62 t pow 0.5 2.0 x -0 -inf 20000 63 t pow -0.5 -2.0 x -0 -inf 20000 66 t pow 0 inf x 0.5 2.0 80000 67 t pow 0 inf x -0.5 -2.0 80000 71 t pow 0x1p1000 inf x 0 1.0 50000 89 t logf 0 inf 50000 [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator_proxy/ |
| H A D | proxy.pass.cpp | 32 std::istringstream inf("abc"); in main() local 33 std::istreambuf_iterator<char> i(inf); in main() 38 std::wistringstream inf(L"abc"); in main() local 39 std::istreambuf_iterator<wchar_t> i(inf); in main()
|