[compiler-rt] f8454d6 - [AIX][compiler-rt][builtins] Don't add ppc builtin implementations that require __int128 on AIX
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 08:35:45 PDT 2020
Author: David Tenty
Date: 2020-08-25T11:35:38-04:00
New Revision: f8454d60b829d6cea4b290a43f2978f0f03f294c
URL: https://github.com/llvm/llvm-project/commit/f8454d60b829d6cea4b290a43f2978f0f03f294c
DIFF: https://github.com/llvm/llvm-project/commit/f8454d60b829d6cea4b290a43f2978f0f03f294c.diff
LOG: [AIX][compiler-rt][builtins] Don't add ppc builtin implementations that require __int128 on AIX
since __int128 currently isn't supported on AIX.
Reviewed By: hubert.reinterpretcast
Differential Revision: https://reviews.llvm.org/D85972
Added:
Modified:
compiler-rt/lib/builtins/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index eb533a7325c7..8dbe15364ab8 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -553,11 +553,8 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
set(powerpc64_SOURCES
ppc/divtc3.c
- ppc/fixtfti.c
ppc/fixtfdi.c
- ppc/fixunstfti.c
ppc/fixunstfdi.c
- ppc/floattitf.c
ppc/floatditf.c
ppc/floatunditf.c
ppc/gcc_qadd.c
@@ -567,6 +564,15 @@ set(powerpc64_SOURCES
ppc/multc3.c
${GENERIC_SOURCES}
)
+# These routines require __int128, which isn't supported on AIX.
+if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
+ set(powerpc64_SOURCES
+ ppc/floattitf.c
+ ppc/fixtfti.c
+ ppc/fixunstfti.c
+ ${powerpc64_SOURCES}
+ )
+endif()
set(powerpc64le_SOURCES ${powerpc64_SOURCES})
set(riscv_SOURCES ${GENERIC_SOURCES} ${GENERIC_TF_SOURCES})
More information about the llvm-commits
mailing list