[cpu] Test cpu-test on travis
This commit is contained in:
parent
0e54381d4c
commit
1c10e7654f
|
@ -59,6 +59,9 @@ script:
|
|||
# Build and run base tests.
|
||||
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-base-tests; fi
|
||||
- if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-base-tests; fi
|
||||
# Build and run cpu tests.
|
||||
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-cpu-tests; fi
|
||||
- if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-cpu-tests; fi
|
||||
# Build and run ppc tests.
|
||||
- if [[ $BUILD == true ]]; then ./xenia-build gentests; fi
|
||||
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-cpu-ppc-tests; fi
|
||||
|
|
|
@ -265,7 +265,7 @@ TEST_CASE("ADD_I64", "[instr]") {
|
|||
},
|
||||
[](PPCContext* ctx) {
|
||||
auto result = ctx->r[3];
|
||||
REQUIRE(result == -15);
|
||||
REQUIRE(result == static_cast<uint64_t>(-15));
|
||||
});
|
||||
test.Run(
|
||||
[](PPCContext* ctx) {
|
||||
|
|
|
@ -51,7 +51,7 @@ TEST_CASE("PACK_FLOAT16_2", "[instr]") {
|
|||
},
|
||||
[](PPCContext* ctx) {
|
||||
auto result = ctx->v[3];
|
||||
REQUIRE(result == vec128i(0, 0, 0, 0x7FFFFFFF));
|
||||
REQUIRE(result == vec128i(0, 0, 0, 0x7BFFFBFF));
|
||||
});
|
||||
test.Run(
|
||||
[](PPCContext* ctx) {
|
||||
|
@ -80,7 +80,7 @@ TEST_CASE("PACK_FLOAT16_4", "[instr]") {
|
|||
[](PPCContext* ctx) {
|
||||
auto result = ctx->v[3];
|
||||
REQUIRE(result ==
|
||||
vec128i(0x00000000, 0x00000000, 0x64D26D8C, 0x48824491));
|
||||
vec128i(0x00000000, 0x00000000, 0x64D26D8B, 0x48814491));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,8 @@ TEST_CASE("PACK_SHORT_2", "[instr]") {
|
|||
test.Run([](PPCContext* ctx) { ctx->v[4] = vec128i(0); },
|
||||
[](PPCContext* ctx) {
|
||||
auto result = ctx->v[3];
|
||||
REQUIRE(result == vec128i(0));
|
||||
REQUIRE(result ==
|
||||
vec128i(0x00000000, 0x00000000, 0x00000000, 0x80018001));
|
||||
});
|
||||
test.Run(
|
||||
[](PPCContext* ctx) {
|
||||
|
|
|
@ -55,7 +55,7 @@ TEST_CASE("UNPACK_FLOAT16_2", "[instr]") {
|
|||
[](PPCContext* ctx) {
|
||||
auto result = ctx->v[3];
|
||||
REQUIRE(result ==
|
||||
vec128i(0x47FFE000, 0xC7FFE000, 0x00000000, 0x3F800000));
|
||||
vec128i(0x7FFFE000, 0xFFFFE000, 0x00000000, 0x3F800000));
|
||||
});
|
||||
test.Run([](PPCContext* ctx) { ctx->v[4] = vec128i(0, 0, 0, 0x55556666); },
|
||||
[](PPCContext* ctx) {
|
||||
|
|
|
@ -73,7 +73,6 @@ class TestFunction {
|
|||
uint32_t stack_address = memory_size - stack_size;
|
||||
uint32_t thread_state_address = stack_address - 0x1000;
|
||||
auto thread_state = std::make_unique<ThreadState>(processor.get(), 0x100);
|
||||
assert_always(); // TODO: Allocate a thread stack!!!
|
||||
auto ctx = thread_state->context();
|
||||
ctx->lr = 0xBCBCBCBC;
|
||||
|
||||
|
|
Loading…
Reference in New Issue