mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-23 13:33:56 +00:00
Rebrand to XenonRecomp.
This commit is contained in:
10
tests/XenonAnalyse/add-cond.cpp
Normal file
10
tests/XenonAnalyse/add-cond.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
int add(int a, int b)
|
||||
{
|
||||
int c = a + b;
|
||||
return c == 0 ? 50000 : c;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return add(1, 2);
|
||||
}
|
BIN
tests/XenonAnalyse/add-cond.elf
Normal file
BIN
tests/XenonAnalyse/add-cond.elf
Normal file
Binary file not shown.
9
tests/XenonAnalyse/add.cpp
Normal file
9
tests/XenonAnalyse/add.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
int add(int a, int b)
|
||||
{
|
||||
return a + b;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return add(1, 2);
|
||||
}
|
BIN
tests/XenonAnalyse/add.elf
Normal file
BIN
tests/XenonAnalyse/add.elf
Normal file
Binary file not shown.
15
tests/XenonAnalyse/cond-fall.cpp
Normal file
15
tests/XenonAnalyse/cond-fall.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
int cond(int a)
|
||||
{
|
||||
int v = 2;
|
||||
if (a == 1)
|
||||
{
|
||||
v += 5;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return cond(0);
|
||||
}
|
BIN
tests/XenonAnalyse/cond-fall.elf
Normal file
BIN
tests/XenonAnalyse/cond-fall.elf
Normal file
Binary file not shown.
18
tests/XenonAnalyse/cond.cpp
Normal file
18
tests/XenonAnalyse/cond.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
int cond(int a)
|
||||
{
|
||||
if (a == 1)
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
else if (a == 4)
|
||||
{
|
||||
return 9;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return cond(0);
|
||||
}
|
BIN
tests/XenonAnalyse/cond.elf
Normal file
BIN
tests/XenonAnalyse/cond.elf
Normal file
Binary file not shown.
15
tests/XenonAnalyse/loop.cpp
Normal file
15
tests/XenonAnalyse/loop.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
int loop(int a)
|
||||
{
|
||||
int result = 0;
|
||||
for (int i = 0; i < a; i++)
|
||||
{
|
||||
result = result * 31 + i;
|
||||
result *= result;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return loop(30);
|
||||
}
|
BIN
tests/XenonAnalyse/loop.elf
Normal file
BIN
tests/XenonAnalyse/loop.elf
Normal file
Binary file not shown.
2
tests/XenonAnalyse/private/.gitignore
vendored
Normal file
2
tests/XenonAnalyse/private/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
Reference in New Issue
Block a user