-
Notifications
You must be signed in to change notification settings - Fork 130
/
main.cpp
34 lines (32 loc) · 1.12 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "SSE2NEONTEST.h"
#include <stdio.h>
#include <stdint.h>
int main(int /*argc*/,const char ** /*argv*/)
{
SSE2NEON::SSE2NEONTest *test = SSE2NEON::SSE2NEONTest::create();
uint32_t passCount = 0;
uint32_t failedCount = 0;
for (uint32_t i = 0; i < SSE2NEON::IT_LAST; i++)
{
SSE2NEON::InstructionTest it = SSE2NEON::InstructionTest(i);
printf("Running Test %s\n", SSE2NEON::SSE2NEONTest::getInstructionTestString(it));
bool ok = test->runTest(it);
// If the test fails, we will run it again so we can step into the debugger and figure out why!
if (!ok)
{
printf("**FAILURE** SSE2NEONTest %s", SSE2NEON::SSE2NEONTest::getInstructionTestString(it));
// test->runTest(it); // Uncomment this to step through the code to find the failure case
}
if (ok)
{
passCount++;
}
else
{
failedCount++;
}
}
test->release();
printf("SSE2NEONTest Complete: Passed %d tests : Failed %d\n", passCount, failedCount);
return 0;
}