summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/subdf3.c
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-03-26 22:01:22 +0000
committerYi Kong <yikong@google.com>2019-03-26 22:01:22 +0000
commit2cabea054e40ae2837da959d0ca89ae25cf1b1f1 (patch)
tree28e7e891bd6a5b5f3dbb3745db45ea6498c1b36a /compiler-rt/lib/builtins/subdf3.c
parent05495c5d4571b1756369e00a1ca7003d63e204da (diff)
downloadbcm5719-llvm-2cabea054e40ae2837da959d0ca89ae25cf1b1f1.tar.gz
bcm5719-llvm-2cabea054e40ae2837da959d0ca89ae25cf1b1f1.zip
[builtins] Rounding mode support for addxf3/subxf3
Implement rounding mode support for addxf3/subxf3. On architectures that implemented the support, this will access the corresponding floating point environment register to apply the correct rounding. For other architectures, it will keep the current behaviour and use IEEE-754 default rounding mode (to nearest, ties to even). ARM32/AArch64 support implemented in this change. i386 and AMD64 will be added in a follow up change. Differential Revision: https://reviews.llvm.org/D57143 llvm-svn: 357035
Diffstat (limited to 'compiler-rt/lib/builtins/subdf3.c')
-rw-r--r--compiler-rt/lib/builtins/subdf3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/builtins/subdf3.c b/compiler-rt/lib/builtins/subdf3.c
index 013c60e9c84..292aec6d1e8 100644
--- a/compiler-rt/lib/builtins/subdf3.c
+++ b/compiler-rt/lib/builtins/subdf3.c
@@ -6,8 +6,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This file implements double-precision soft-float subtraction with the
-// IEEE-754 default rounding (to nearest, ties to even).
+// This file implements double-precision soft-float subtraction.
//
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud