[PATCH] D43106: [RISCV] Force enable int128 for compiling long double routines

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 11:50:27 PST 2018


mgrang updated this revision to Diff 135940.
mgrang retitled this revision from "[RISCV] Enable -fforce-enable-int128 through cmake flag COMPILER_RT_HAS_FINT128_FLAG" to "[RISCV] Force enable int128 for compiling long double routines".
mgrang edited the summary of this revision.

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D43106

Files:
  lib/builtins/CMakeLists.txt


Index: lib/builtins/CMakeLists.txt
===================================================================
--- lib/builtins/CMakeLists.txt
+++ lib/builtins/CMakeLists.txt
@@ -546,6 +546,12 @@
         list(APPEND BUILTIN_CFLAGS -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
       endif()
 
+      # For RISCV32, we must force enable int128 for compiling long
+      # double routines.
+      if("${arch}" STREQUAL "riscv32")
+        list(APPEND BUILTIN_CFLAGS -fforce-enable-int128)
+      endif()
+
       add_compiler_rt_runtime(clang_rt.builtins
                               STATIC
                               ARCHS ${arch}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43106.135940.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180226/d5aafbab/attachment.bin>


More information about the llvm-commits mailing list