From 7a739a0dfb6d408c6d587e5c7b52abd89fc3fdd3 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 19 Jan 2019 10:56:40 +0000 Subject: Update more file headers across all of the LLVM projects in the monorepo to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351648 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/subtf3.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/builtins/subtf3.c') diff --git a/lib/builtins/subtf3.c b/lib/builtins/subtf3.c index 609b816f4..871cf86b8 100644 --- a/lib/builtins/subtf3.c +++ b/lib/builtins/subtf3.c @@ -1,9 +1,8 @@ //===-- lib/subtf3.c - Quad-precision subtraction -----------------*- C -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // -- cgit v1.2.1 From 010ea6fbe5ada4652dd7917961ec1dc0c0dfb8b8 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 26 Mar 2019 22:01:22 +0000 Subject: [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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@357035 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/subtf3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/builtins/subtf3.c') diff --git a/lib/builtins/subtf3.c b/lib/builtins/subtf3.c index 871cf86b8..f1b3e2935 100644 --- a/lib/builtins/subtf3.c +++ b/lib/builtins/subtf3.c @@ -6,8 +6,7 @@ // //===----------------------------------------------------------------------===// // -// This file implements quad-precision soft-float subtraction with the -// IEEE-754 default rounding (to nearest, ties to even). +// This file implements quad-precision soft-float subtraction. // //===----------------------------------------------------------------------===// -- cgit v1.2.1 From a2711c91eabf90d3dc90df4da64e306dc7dd1358 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Wed, 27 Mar 2019 04:18:37 +0000 Subject: Revert "[builtins] Rounding mode support for addxf3/subxf3" This reverts commit 2cabea054e40ae2837da959d0ca89ae25cf1b1f1. Test failure on buildbots. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@357048 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/subtf3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/builtins/subtf3.c') diff --git a/lib/builtins/subtf3.c b/lib/builtins/subtf3.c index f1b3e2935..871cf86b8 100644 --- a/lib/builtins/subtf3.c +++ b/lib/builtins/subtf3.c @@ -6,7 +6,8 @@ // //===----------------------------------------------------------------------===// // -// This file implements quad-precision soft-float subtraction. +// This file implements quad-precision soft-float subtraction with the +// IEEE-754 default rounding (to nearest, ties to even). // //===----------------------------------------------------------------------===// -- cgit v1.2.1 From db42a0ccf35e49df3a801d4a7964fce06f587542 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Sun, 28 Apr 2019 21:53:32 +0000 Subject: [builtins] Reformat builtins with clang-format Update formatting to use the LLVM style. This is part of the cleanup proposed in "[RFC] compiler-rt builtins cleanup and refactoring". Differential Revision: https://reviews.llvm.org/D60351 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359410 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/subtf3.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/builtins/subtf3.c') diff --git a/lib/builtins/subtf3.c b/lib/builtins/subtf3.c index 871cf86b8..c96814692 100644 --- a/lib/builtins/subtf3.c +++ b/lib/builtins/subtf3.c @@ -18,9 +18,8 @@ COMPILER_RT_ABI fp_t __addtf3(fp_t a, fp_t b); // Subtraction; flip the sign bit of b and add. -COMPILER_RT_ABI fp_t -__subtf3(fp_t a, fp_t b) { - return __addtf3(a, fromRep(toRep(b) ^ signBit)); +COMPILER_RT_ABI fp_t __subtf3(fp_t a, fp_t b) { + return __addtf3(a, fromRep(toRep(b) ^ signBit)); } #endif -- cgit v1.2.1