From 5621f63001219a27d1add10780c67371fcef607c Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 16 Aug 2015 16:21:58 -0500 Subject: [PATCH] Tests for vminsh, vminuh. --- src/xenia/cpu/frontend/testing/instr_vminsh.s | 17 +++++++++++++++++ src/xenia/cpu/frontend/testing/instr_vminuh.s | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/xenia/cpu/frontend/testing/instr_vminsh.s create mode 100644 src/xenia/cpu/frontend/testing/instr_vminuh.s diff --git a/src/xenia/cpu/frontend/testing/instr_vminsh.s b/src/xenia/cpu/frontend/testing/instr_vminsh.s new file mode 100644 index 000000000..3f69e0df1 --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vminsh.s @@ -0,0 +1,17 @@ +test_vminsh_1: + #_ REGISTER_IN v3 [00000001, 00020003, 00040005, 00060007] + #_ REGISTER_IN v4 [00080009, 000A000B, 000C000D, 000E000F] + vminsh v5, v3, v4 + blr + #_ REGISTER_OUT v3 [00000001, 00020003, 00040005, 00060007] + #_ REGISTER_OUT v4 [00080009, 000A000B, 000C000D, 000E000F] + #_ REGISTER_OUT v5 [00000001, 00020003, 00040005, 00060007] + +test_vminsh_2: + #_ REGISTER_IN v3 [00000009, 0002000B, 0004000D, 0006000F] + #_ REGISTER_IN v4 [00080001, 000A0003, 000C0005, 000E0007] + vminsh v5, v3, v4 + blr + #_ REGISTER_OUT v3 [00000009, 0002000B, 0004000D, 0006000F] + #_ REGISTER_OUT v4 [00080001, 000A0003, 000C0005, 000E0007] + #_ REGISTER_OUT v5 [00000001, 00020003, 00040005, 00060007] diff --git a/src/xenia/cpu/frontend/testing/instr_vminuh.s b/src/xenia/cpu/frontend/testing/instr_vminuh.s new file mode 100644 index 000000000..aaac24240 --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vminuh.s @@ -0,0 +1,17 @@ +test_vminuh_1: + #_ REGISTER_IN v3 [00000001, 00020003, 00040005, 00060007] + #_ REGISTER_IN v4 [00080009, 000A000B, 000C000D, 000E000F] + vminuh v5, v3, v4 + blr + #_ REGISTER_OUT v3 [00000001, 00020003, 00040005, 00060007] + #_ REGISTER_OUT v4 [00080009, 000A000B, 000C000D, 000E000F] + #_ REGISTER_OUT v5 [00000001, 00020003, 00040005, 00060007] + +test_vminuh_2: + #_ REGISTER_IN v3 [00000009, 0002000B, 0004000D, 0006000F] + #_ REGISTER_IN v4 [00080001, 000A0003, 000C0005, 000E0007] + vminuh v5, v3, v4 + blr + #_ REGISTER_OUT v3 [00000009, 0002000B, 0004000D, 0006000F] + #_ REGISTER_OUT v4 [00080001, 000A0003, 000C0005, 000E0007] + #_ REGISTER_OUT v5 [00000001, 00020003, 00040005, 00060007]