[PATCH] D74275: [compiler-rt] Compile __powitf2 under wasm
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 20:43:08 PST 2020
sbc100 updated this revision to Diff 243345.
sbc100 added a comment.
rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74275/new/
https://reviews.llvm.org/D74275
Files:
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/lib/builtins/powitf2.c
compiler-rt/test/builtins/Unit/powitf2_test.c
Index: compiler-rt/test/builtins/Unit/powitf2_test.c
===================================================================
--- compiler-rt/test/builtins/Unit/powitf2_test.c
+++ compiler-rt/test/builtins/Unit/powitf2_test.c
@@ -14,7 +14,7 @@
#include <stdio.h>
-#if _ARCH_PPC
+#if defined (_ARCH_PPC) || defined (__wasm__)
#include "int_lib.h"
#include <math.h>
@@ -37,7 +37,7 @@
int main()
{
-#if _ARCH_PPC
+#if defined(_ARCH_PPC) || defined (__wasm__)
if (test__powitf2(0, 0, 1))
return 1;
if (test__powitf2(1, 0, 1))
Index: compiler-rt/lib/builtins/powitf2.c
===================================================================
--- compiler-rt/lib/builtins/powitf2.c
+++ compiler-rt/lib/builtins/powitf2.c
@@ -12,7 +12,7 @@
#include "int_lib.h"
-#if _ARCH_PPC
+#if defined(_ARCH_PPC) || defined(__wasm__)
// Returns: a ^ b
Index: compiler-rt/lib/builtins/CMakeLists.txt
===================================================================
--- compiler-rt/lib/builtins/CMakeLists.txt
+++ compiler-rt/lib/builtins/CMakeLists.txt
@@ -144,6 +144,7 @@
powidf2.c
powisf2.c
powitf2.c
+ powixf2.c
subdf3.c
subsf3.c
subvdi3.c
@@ -248,7 +249,6 @@
floatundixf.c
floatuntixf.c
mulxc3.c
- powixf2.c
)
if (NOT MSVC)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74275.243345.patch
Type: text/x-patch
Size: 1275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200208/058def2a/attachment.bin>
More information about the llvm-commits
mailing list