From 8c07a3efdd70d4aa2b807896875849677db48903 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 16 Aug 2015 05:55:15 -0500 Subject: [PATCH] Tests for vpkuwum. --- .../cpu/frontend/testing/instr_vpkuwum.s | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/xenia/cpu/frontend/testing/instr_vpkuwum.s diff --git a/src/xenia/cpu/frontend/testing/instr_vpkuwum.s b/src/xenia/cpu/frontend/testing/instr_vpkuwum.s new file mode 100644 index 000000000..3f463160a --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vpkuwum.s @@ -0,0 +1,36 @@ +#vpkuwum isn't implemented yet +#test_vpkuwum_0: +# # {0, 1, 2, 3} +# #_ REGISTER_IN v3 [00000000, 00000001, 00000002, 00000003] +# # {4, 5, 6, 7} +# #_ REGISTER_IN v4 [00000004, 00000005, 00000006, 00000007] +# vpkuwum v5, v3, v4 +# blr +# #_ REGISTER_OUT v3 [00000000, 00000001, 00000002, 00000003] +# #_ REGISTER_OUT v4 [00000004, 00000005, 00000006, 00000007] +# # {0, 1, 2, 3, 4, 5, 6, 7} +# #_ REGISTER_OUT v5 [00000001, 00020003, 00040005, 00060007] + +#test_vpkuwum_1: +# # {-4, -3, -2, -1} +# #_ REGISTER_IN v3 [FFFFFFFC, FFFFFFFD, FFFFFFFE, FFFFFFFF] +# # {0, 1, 2, 3} +# #_ REGISTER_IN v4 [00000000, 00000001, 00000002, 00000003] +# vpkuwum v5, v3, v4 +# blr +# #_ REGISTER_OUT v3 [FFFFFFFC, FFFFFFFD, FFFFFFFE, FFFFFFFF] +# #_ REGISTER_OUT v4 [00000000, 00000001, 00000002, 00000003] +# # {-4, -3, -2, -1, 0, 1, 2, 3} +# #_ REGISTER_OUT v5 [FFFCFFFD, FFFEFFFF, 00000001, 00020003] + +#test_vpkuwum_2: +# # {0, 4294967295, 4294967295, 4294967295} +# #_ REGISTER_IN v3 [00000000, FFFFFFFF, FFFFFFFF, FFFFFFFF] +# # {4294967295, 0, 0, 0} +# #_ REGISTER_IN v4 [FFFFFFFF, 00000000, 00000000, 00000000] +# vpkuwum v5, v3, v4 +# blr +# #_ REGISTER_OUT v3 [00000000, FFFFFFFF, FFFFFFFF, FFFFFFFF] +# #_ REGISTER_OUT v4 [FFFFFFFF, 00000000, 00000000, 00000000] +# # {0, 65535, 65535, 65535, 65535, 0, 0, 0} +# #_ REGISTER_OUT v5 [0000FFFF, FFFFFFFF, FFFF0000, 00000000]