Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@@ -0,0 +1,32 @@
// REQUIRES: powerpc-registered-target
// RUN: %clang_builtins %s -o %t && %run %t
#include <stdint.h>
#include <stdio.h>
COMPILER_RT_ABI long double __floatditf(int64_t);
#include "floatunditf_test.h"
#include "DD.h"
int main(int argc, char *argv[]) {
int i;
DD expected;
DD computed;
for (i=0; i<numTests; ++i) {
expected.hi = tests[i].hi;
expected.lo = tests[i].lo;
computed.ld = __floatditf(tests[i].input);
if ((computed.hi != expected.hi) || (computed.lo != expected.lo))
{
printf("Error on __floatunditf( 0x%016llx ):\n", tests[i].input);
printf("\tExpected %La = ( %a , %a )\n", expected.ld, expected.hi, expected.lo);
printf("\tComputed %La = ( %a , %a )\n", computed.ld, computed.hi, computed.lo);
return 1;
}
}
return 0;
}