mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 05:01:56 +00:00
[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
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user