libm-test-ulps-riscv32 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # Begin of automatic generation
  2. # cos
  3. Test "cos (M_PI_6l * 2.0) == 0.5":
  4. double: 1
  5. idouble: 1
  6. Test "cos (M_PI_6l * 4.0) == -0.5":
  7. double: 2
  8. float: 1
  9. idouble: 2
  10. ifloat: 1
  11. # erf
  12. Test "erf (0.75) == 0.711155633653515131598937834591410777":
  13. double: 1
  14. idouble: 1
  15. Test "erf (1.25) == 0.922900128256458230136523481197281140":
  16. double: 1
  17. idouble: 1
  18. # erfc
  19. Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
  20. double: 1
  21. idouble: 1
  22. # exp
  23. Test "exp (1) == e":
  24. double: 1
  25. idouble: 1
  26. # expm1
  27. Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
  28. double: 1
  29. idouble: 1
  30. Test "expm1 (1) == M_El - 1.0":
  31. double: 1
  32. idouble: 1
  33. # hypot
  34. Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
  35. float: 1
  36. ifloat: 1
  37. Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
  38. float: 1
  39. ifloat: 1
  40. Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
  41. float: 1
  42. ifloat: 1
  43. Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
  44. float: 1
  45. ifloat: 1
  46. Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
  47. float: 1
  48. ifloat: 1
  49. Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
  50. float: 1
  51. ifloat: 1
  52. Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
  53. float: 1
  54. ifloat: 1
  55. Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
  56. float: 1
  57. ifloat: 1
  58. # lgamma
  59. Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
  60. double: 1
  61. float: 1
  62. idouble: 1
  63. ifloat: 1
  64. Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
  65. double: 1
  66. float: 2
  67. idouble: 1
  68. ifloat: 2
  69. # log10
  70. Test "log10 (0.75) == -0.124938736608299953132449886193870744":
  71. double: 1
  72. idouble: 1
  73. Test "log10 (e) == log10(e)":
  74. float: 1
  75. ifloat: 1
  76. # tgamma
  77. Test "tgamma (-0.5) == -2 sqrt (pi)":
  78. double: 1
  79. idouble: 1
  80. Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
  81. double: 1
  82. float: 1
  83. idouble: 1
  84. ifloat: 1
  85. # Maximal error of functions:
  86. Function: "cos":
  87. double: 2
  88. float: 1
  89. idouble: 2
  90. ifloat: 1
  91. Function: "erf":
  92. double: 1
  93. idouble: 1
  94. Function: "erfc":
  95. double: 1
  96. idouble: 1
  97. Function: "exp":
  98. double: 1
  99. idouble: 1
  100. Function: "expm1":
  101. double: 1
  102. idouble: 1
  103. Function: "hypot":
  104. float: 1
  105. ifloat: 1
  106. Function: "lgamma":
  107. double: 1
  108. float: 2
  109. idouble: 1
  110. ifloat: 2
  111. Function: "log":
  112. float: 1
  113. ifloat: 1
  114. Function: "log10":
  115. double: 1
  116. float: 1
  117. idouble: 1
  118. ifloat: 1
  119. Function: "tan":
  120. double: 1
  121. idouble: 1
  122. Function: "tgamma":
  123. double: 1
  124. float: 1
  125. idouble: 1
  126. ifloat: 1
  127. # end of automatic generation