Running (IVM) tests on osx.
This commit is contained in:
parent
28bae464c2
commit
d242e37d84
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include <tools/alloy-test/util.h>
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace alloy;
|
||||
using namespace alloy::hir;
|
||||
using namespace alloy::runtime;
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include <tools/alloy-test/util.h>
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
using namespace alloy;
|
||||
using namespace alloy::hir;
|
||||
using namespace alloy::runtime;
|
||||
|
@ -262,7 +264,7 @@ TEST_CASE("VECTOR_ADD_F32", "[instr]") {
|
|||
REQUIRE(result == vec128i(0x7F800000));
|
||||
});
|
||||
test.Run([](PPCContext* ctx) {
|
||||
ctx->v[4] = vec128f(FLT_MIN);
|
||||
ctx->v[4] = vec128f(-FLT_MIN);
|
||||
ctx->v[5] = vec128f(-1.0f);
|
||||
},
|
||||
[](PPCContext* ctx) {
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
|
||||
#include <third_party/catch/single_include/catch.hpp>
|
||||
|
||||
#define ALLOY_TEST_IVM 1
|
||||
//#define ALLOY_TEST_X64 1
|
||||
|
||||
namespace alloy {
|
||||
namespace test {
|
||||
|
||||
|
@ -82,6 +85,7 @@ class TestFunction {
|
|||
memory_size = 16 * 1024 * 1024;
|
||||
memory.reset(new SimpleMemory(memory_size));
|
||||
|
||||
#if ALLOY_TEST_IVM
|
||||
{
|
||||
auto runtime = std::make_unique<Runtime>(memory.get());
|
||||
auto frontend =
|
||||
|
@ -91,6 +95,8 @@ class TestFunction {
|
|||
runtime->Initialize(std::move(frontend), std::move(backend));
|
||||
runtimes.emplace_back(std::move(runtime));
|
||||
}
|
||||
#endif // ALLOY_TEST_IVM
|
||||
#ifdef ALLOY_TEST_X64
|
||||
{
|
||||
auto runtime = std::make_unique<Runtime>(memory.get());
|
||||
auto frontend =
|
||||
|
@ -100,6 +106,7 @@ class TestFunction {
|
|||
runtime->Initialize(std::move(frontend), std::move(backend));
|
||||
runtimes.emplace_back(std::move(runtime));
|
||||
}
|
||||
#endif // ALLOY_TEST_X64
|
||||
|
||||
for (auto& runtime : runtimes) {
|
||||
auto module = std::make_unique<alloy::runtime::TestModule>(
|
||||
|
|
Loading…
Reference in New Issue