From 9fa7ec5c1f3bcde518ff5f79d8ff5a5b533ee4ed Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 16 Aug 2015 16:16:24 -0500 Subject: [PATCH] Tests for vavgsh, vavguh. --- src/xenia/cpu/frontend/testing/instr_vavgsh.s | 9 +++++++++ src/xenia/cpu/frontend/testing/instr_vavguh.s | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/xenia/cpu/frontend/testing/instr_vavgsh.s create mode 100644 src/xenia/cpu/frontend/testing/instr_vavguh.s diff --git a/src/xenia/cpu/frontend/testing/instr_vavgsh.s b/src/xenia/cpu/frontend/testing/instr_vavgsh.s new file mode 100644 index 000000000..4035bf855 --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vavgsh.s @@ -0,0 +1,9 @@ +#vavgsh isn't implemented +#test_vavgsh_1: +# #_ REGISTER_IN v3 [00000001, 00020003, 00040005, 00060007] +# #_ REGISTER_IN v4 [00080009, 000A000B, 000C000D, 000E000F] +# vavgsh v5, v3, v4 +# blr +# #_ REGISTER_OUT v3 [00000001, 00020003, 00040005, 00060007] +# #_ REGISTER_OUT v4 [00080009, 000A000B, 000C000D, 000E000F] +# #_ REGISTER_OUT v5 [00040005, 00060007, 00080009, 000A000B] diff --git a/src/xenia/cpu/frontend/testing/instr_vavguh.s b/src/xenia/cpu/frontend/testing/instr_vavguh.s new file mode 100644 index 000000000..196c343ac --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vavguh.s @@ -0,0 +1,8 @@ +test_vavguh_1: + #_ REGISTER_IN v3 [00000001, 00020003, 00040005, 00060007] + #_ REGISTER_IN v4 [00080009, 000A000B, 000C000D, 000E000F] + vavguh v5, v3, v4 + blr + #_ REGISTER_OUT v3 [00000001, 00020003, 00040005, 00060007] + #_ REGISTER_OUT v4 [00080009, 000A000B, 000C000D, 000E000F] + #_ REGISTER_OUT v5 [00040005, 00060007, 00080009, 000A000B]