aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorWunkolo <[email protected]>2024-02-05 15:59:50 -0800
committermerry <[email protected]>2024-02-10 11:38:17 +0000
commit6d0995c948bbaa044824e725841f93e5a4337a1d (patch)
treeb820de02b7f1687ae432a498e6688f92f08084b2 /tests
parent18717d216c0646dda168e230f2bc8fa172ee009f (diff)
downloaddynarmic-6d0995c948bbaa044824e725841f93e5a4337a1d.tar.gz
dynarmic-6d0995c948bbaa044824e725841f93e5a4337a1d.zip
tests/A64: Add negative-shift elements to `USHL`
Diffstat (limited to 'tests')
-rw-r--r--tests/A64/a64.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/A64/a64.cpp b/tests/A64/a64.cpp
index b7424826..bf7125cb 100644
--- a/tests/A64/a64.cpp
+++ b/tests/A64/a64.cpp
@@ -293,10 +293,10 @@ TEST_CASE("A64: USHL", "[a64]") {
env.code_mem.emplace_back(0x14000000); // B .
jit.SetPC(0);
- jit.SetVector(0, {0x100F0E0D0C0B0A09, 0x0807050403020100});
- jit.SetVector(1, {0x0008000700060005, 0x0004000300020001});
- jit.SetVector(2, {0x0000000400000003, 0x0000000200000001});
- jit.SetVector(3, {0x0000000000000002, 0x0000000000000001});
+ jit.SetVector(0, {0x10FE0E0D0C0B0A09, 0x0807050403020100});
+ jit.SetVector(1, {0xFFFE000700060005, 0x0004000300020001});
+ jit.SetVector(2, {0xFFFFFFFE00000003, 0x0000000200000001});
+ jit.SetVector(3, {0xFFFFFFFFFFFFFFFE, 0x0000000000000001});
jit.SetVector(4, {0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF});
jit.SetVector(5, {0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF});
@@ -306,10 +306,10 @@ TEST_CASE("A64: USHL", "[a64]") {
env.ticks_left = 4;
jit.Run();
- REQUIRE(jit.GetVector(4) == Vector{0x0000000000000000, 0x0080e0f0f8fcfeff});
- REQUIRE(jit.GetVector(5) == Vector{0xff00ff80ffc0ffe0, 0xfff0fff8fffcfffe});
- REQUIRE(jit.GetVector(6) == Vector{0xfffffff0fffffff8, 0xfffffffcfffffffe});
- REQUIRE(jit.GetVector(7) == Vector{0xfffffffffffffffc, 0xfffffffffffffffe});
+ REQUIRE(jit.GetVector(4) == Vector{0x003f000000000000, 0x0080e0f0f8fcfeff});
+ REQUIRE(jit.GetVector(5) == Vector{0x3fffff80ffc0ffe0, 0xfff0fff8fffcfffe});
+ REQUIRE(jit.GetVector(6) == Vector{0x3ffffffffffffff8, 0xfffffffcfffffffe});
+ REQUIRE(jit.GetVector(7) == Vector{0x3fffffffffffffff, 0xfffffffffffffffe});
}
TEST_CASE("A64: XTN", "[a64]") {