forked from OSchip/llvm-project
[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:
parent
7096d588d3
commit
2f172d8d3c
|
@ -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
|
// Returns: a ^ b
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if _ARCH_PPC
|
#if __LDBL_MANT_DIG__ == 113
|
||||||
|
|
||||||
#include "int_lib.h"
|
#include "int_lib.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -37,7 +37,7 @@ int test__powitf2(long double a, si_int b, long double expected)
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
#if _ARCH_PPC
|
#if __LDBL_MANT_DIG__ == 113
|
||||||
if (test__powitf2(0, 0, 1))
|
if (test__powitf2(0, 0, 1))
|
||||||
return 1;
|
return 1;
|
||||||
if (test__powitf2(1, 0, 1))
|
if (test__powitf2(1, 0, 1))
|
||||||
|
|
Loading…
Reference in New Issue