Skip to content

Commit a19f0ee

Browse files
committed
Revert 1689ad2 "[builtins] Implement rounding mode support for i386/x86_64"
It broke the build with MSVC: fp_mode.c(20): error C2065: '__asm__': undeclared identifier > Differential Revision: https://reviews.llvm.org/D69870
1 parent 8978c12 commit a19f0ee

File tree

4 files changed

+2
-44
lines changed

4 files changed

+2
-44
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ set(x86_ARCH_SOURCES
239239
floatuntixf.c
240240
mulxc3.c
241241
powixf2.c
242-
i386/fp_mode.c
243242
)
244243

245244
if (NOT MSVC)

compiler-rt/lib/builtins/i386/fp_mode.c

Lines changed: 0 additions & 39 deletions
This file was deleted.

compiler-rt/test/builtins/Unit/addtf3_test.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ int main()
7676
UINT64_C(0x61e58dd6c51eb77c)))
7777
return 1;
7878

79-
#if (defined(__arm__) || defined(__aarch64__)) && defined(__ARM_FP) || \
80-
defined(i386) || defined(__x86_64__)
79+
#if (defined(__arm__) || defined(__aarch64__)) && defined(__ARM_FP)
8180
// Rounding mode tests on supported architectures
8281
const long double m = 1234.0L, n = 0.01L;
8382

compiler-rt/test/builtins/Unit/subtf3_test.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ int main()
6969
UINT64_C(0xa44a7bca780a166c)))
7070
return 1;
7171

72-
#if (defined(__arm__) || defined(__aarch64__)) && defined(__ARM_FP) || \
73-
defined(i386) || defined(__x86_64__)
72+
#if (defined(__arm__) || defined(__aarch64__)) && defined(__ARM_FP)
7473
// Rounding mode tests on supported architectures
7574
const long double m = 1234.02L, n = 0.01L;
7675

0 commit comments

Comments
 (0)