File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ if (NOT MSVC)
356
356
set (i386_SOURCES
357
357
${GENERIC_SOURCES}
358
358
${x86_ARCH_SOURCES}
359
+ ${GENERIC_TF_SOURCES}
359
360
i386/ashldi3.S
360
361
i386/ashrdi3.S
361
362
i386/divdi3.S
@@ -906,7 +907,7 @@ else ()
906
907
907
908
# For RISCV32, we must force enable int128 for compiling long
908
909
# double routines.
909
- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" )
910
+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR " ${arch} " STREQUAL "i386" )
910
911
list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128 )
911
912
endif ()
912
913
Original file line number Diff line number Diff line change 12
12
#define QUAD_PRECISION
13
13
#include "fp_lib.h"
14
14
15
- #if defined(CRT_HAS_TF_MODE ) && __LDBL_MANT_DIG__ == 64 && defined(__x86_64__ )
15
+ #if defined(CRT_HAS_TF_MODE ) && __LDBL_MANT_DIG__ == 64 && \
16
+ (defined(__x86_64__ ) || defined(__i386__ ))
16
17
#define SRC_80
17
18
#define DST_QUAD
18
19
#include "fp_extend_impl.inc"
Original file line number Diff line number Diff line change 12
12
#define QUAD_PRECISION
13
13
#include "fp_lib.h"
14
14
15
- #if defined(CRT_HAS_TF_MODE ) && __LDBL_MANT_DIG__ == 64 && defined(__x86_64__ )
15
+ #if defined(CRT_HAS_TF_MODE ) && __LDBL_MANT_DIG__ == 64 && \
16
+ (defined(__x86_64__ ) || defined(__i386__ ))
16
17
17
18
#define SRC_QUAD
18
19
#define DST_80
Original file line number Diff line number Diff line change 1
- // RUN: %clang_builtins %s %librt -o %t && %run %t
1
+ // RUN: %clang_builtins %s %librt -fforce-enable-int128 - o %t && %run %t
2
2
// REQUIRES: librt_has_extendxftf2
3
3
4
4
#include "int_lib.h"
5
5
#include <stdio.h>
6
6
7
- #if __LDBL_MANT_DIG__ == 64 && defined(__x86_64__ ) && \
7
+ #if __LDBL_MANT_DIG__ == 64 && ( defined(__x86_64__ ) || defined( __i386__ )) && \
8
8
(defined(__FLOAT128__ ) || defined(__SIZEOF_FLOAT128__ ))
9
9
10
10
#include "fp_test.h"
@@ -28,7 +28,7 @@ char assumption_1[sizeof(long double) * CHAR_BIT == 128] = {0};
28
28
#endif
29
29
30
30
int main () {
31
- #if __LDBL_MANT_DIG__ == 64 && defined(__x86_64__ ) && \
31
+ #if __LDBL_MANT_DIG__ == 64 && ( defined(__x86_64__ ) || defined( __i386__ )) && \
32
32
(defined(__FLOAT128__ ) || defined(__SIZEOF_FLOAT128__ ))
33
33
// qNaN
34
34
if (test__extendxftf2 (makeQNaN80 (), UINT64_C (0x7fff800000000000 ),
Original file line number Diff line number Diff line change 1
- // RUN: %clang_builtins %s %librt -o %t && %run %t
1
+ // RUN: %clang_builtins %s %librt -fforce-enable-int128 - o %t && %run %t
2
2
// REQUIRES: librt_has_trunctfxf2
3
3
4
4
#include "int_lib.h"
5
5
#include <stdio.h>
6
6
7
- #if __LDBL_MANT_DIG__ == 64 && defined(__x86_64__ ) && \
7
+ #if __LDBL_MANT_DIG__ == 64 && ( defined(__x86_64__ ) || defined( __i386__ )) && \
8
8
(defined(__FLOAT128__ ) || defined(__SIZEOF_FLOAT128__ ))
9
9
10
10
#include "fp_test.h"
@@ -28,7 +28,7 @@ char assumption_1[sizeof(long double) * CHAR_BIT == 128] = {0};
28
28
#endif
29
29
30
30
int main () {
31
- #if __LDBL_MANT_DIG__ == 64 && defined(__x86_64__ ) && \
31
+ #if __LDBL_MANT_DIG__ == 64 && ( defined(__x86_64__ ) || defined( __i386__ )) && \
32
32
(defined(__FLOAT128__ ) || defined(__SIZEOF_FLOAT128__ ))
33
33
// qNaN
34
34
if (test__trunctfxf2 (makeQNaN128 (), UINT64_C (0x7FFF ),
You can’t perform that action at this time.
0 commit comments