[compiler-rt] Compile __powitf2 under wasm

See https://github.com/emscripten-core/emscripten/issues/10374
See https://reviews.llvm.org/D74274

Differential Revision: https://reviews.llvm.org/D74275
This commit is contained in:
Sam Clegg 2020-02-07 18:15:15 -08:00
parent 7096d588d3
commit 2f172d8d3c
2 changed files with 5 additions and 4 deletions

View File

@ -10,9 +10,10 @@
//
//===----------------------------------------------------------------------===//
#include "int_lib.h"
#define QUAD_PRECISION
#include "fp_lib.h"
#if _ARCH_PPC
#if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
// Returns: a ^ b

View File

@ -14,7 +14,7 @@
#include <stdio.h>
#if _ARCH_PPC
#if __LDBL_MANT_DIG__ == 113
#include "int_lib.h"
#include <math.h>
@ -37,7 +37,7 @@ int test__powitf2(long double a, si_int b, long double expected)
int main()
{
#if _ARCH_PPC
#if __LDBL_MANT_DIG__ == 113
if (test__powitf2(0, 0, 1))
return 1;
if (test__powitf2(1, 0, 1))