summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/builtins/Unit/addtf3_test.c
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-03-27 04:18:37 +0000
committerYi Kong <yikong@google.com>2019-03-27 04:18:37 +0000
commite204d244badb2e9765a1020f41c773f63da208f4 (patch)
tree3111534fc574456223b949340ec1bd053cdbbb07 /compiler-rt/test/builtins/Unit/addtf3_test.c
parent5321dcd608a1d9b1b172b33838f1cfd29e0fed10 (diff)
downloadbcm5719-llvm-e204d244badb2e9765a1020f41c773f63da208f4.tar.gz
bcm5719-llvm-e204d244badb2e9765a1020f41c773f63da208f4.zip
Revert "[builtins] Rounding mode support for addxf3/subxf3"
This reverts commit 2cabea054e40ae2837da959d0ca89ae25cf1b1f1. Test failure on buildbots. llvm-svn: 357048
Diffstat (limited to 'compiler-rt/test/builtins/Unit/addtf3_test.c')
-rw-r--r--compiler-rt/test/builtins/Unit/addtf3_test.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/compiler-rt/test/builtins/Unit/addtf3_test.c b/compiler-rt/test/builtins/Unit/addtf3_test.c
index d24d0ebd70b..8f00f6de7a6 100644
--- a/compiler-rt/test/builtins/Unit/addtf3_test.c
+++ b/compiler-rt/test/builtins/Unit/addtf3_test.c
@@ -11,12 +11,11 @@
//
//===----------------------------------------------------------------------===//
-#include <fenv.h>
+#include "int_lib.h"
#include <stdio.h>
#if __LDBL_MANT_DIG__ == 113
-#include "int_lib.h"
#include "fp_test.h"
// Returns: a + b
@@ -75,26 +74,6 @@ int main()
UINT64_C(0x61e58dd6c51eb77c)))
return 1;
-#if (defined(__arm__) || defined(__aarch64__)) && defined(__ARM_FP)
- // Rounding mode tests on supported architectures
- long double m = 1234.0L, n = 0.01L;
- fesetround(FE_UPWARD);
- if (__addtf3(m, n) != 1235.0L)
- return 1;
-
- fesetround(FE_DOWNWARD);
- if (__addtf3(m, n) != 1234.0L)
- return 1;
-
- fesetround(FE_TOWARDZERO);
- if (__addtf3(m, n) != 1234.0L)
- return 1;
-
- fesetround(FE_TONEAREST);
- if (__addtf3(m, n) != 1234.0L)
- return 1;
-#endif
-
#else
printf("skipped\n");
OpenPOWER on IntegriCloud