From d7c0837f40f2dca966664cedfe99be0ef8cdc5a6 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 16 Aug 2015 05:15:35 -0500 Subject: [PATCH] Tests for vpkswus, vpkuwus. --- src/xenia/cpu/frontend/testing/instr_vpkswus.s | 11 +++++++++++ src/xenia/cpu/frontend/testing/instr_vpkuwus.s | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/xenia/cpu/frontend/testing/instr_vpkswus.s create mode 100644 src/xenia/cpu/frontend/testing/instr_vpkuwus.s diff --git a/src/xenia/cpu/frontend/testing/instr_vpkswus.s b/src/xenia/cpu/frontend/testing/instr_vpkswus.s new file mode 100644 index 000000000..2fa5808d1 --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vpkswus.s @@ -0,0 +1,11 @@ +test_vpkswus_0: + # {-1, -32768, 0, 32767} + #_ REGISTER_IN v3 [FFFFFFFF, FFFF8000, 00000000, 00007FFF] + # {-2, -32769, 1, 32768} + #_ REGISTER_IN v4 [FFFFFFFE, FFFF7FFF, 00000001, 00008000] + vpkswus v5, v3, v4 + blr + #_ REGISTER_OUT v3 [FFFFFFFF, FFFF8000, 00000000, 00007FFF] + #_ REGISTER_OUT v4 [FFFFFFFE, FFFF7FFF, 00000001, 00008000] + # {0, 0, 0, 32767, 0, 0, 1, 32768} + #_ REGISTER_OUT v5 [00000000, 00007FFF, 00000000, 00018000] diff --git a/src/xenia/cpu/frontend/testing/instr_vpkuwus.s b/src/xenia/cpu/frontend/testing/instr_vpkuwus.s new file mode 100644 index 000000000..5d1e0ef13 --- /dev/null +++ b/src/xenia/cpu/frontend/testing/instr_vpkuwus.s @@ -0,0 +1,11 @@ +test_vpkuwus_0: + # {0, 65536, 1, 65537} + #_ REGISTER_IN v3 [00000000, 00010000, 00000001, 00010001] + # {2, 65538, 3, 65539} + #_ REGISTER_IN v4 [00000002, 00010002, 00000003, 00010003] + vpkuwus v5, v3, v4 + blr + #_ REGISTER_OUT v3 [00000000, 00010000, 00000001, 00010001] + #_ REGISTER_OUT v4 [00000002, 00010002, 00000003, 00010003] + # {0, 65535, 1, 65535, 2, 65535, 3, 65535} + #_ REGISTER_OUT v5 [0000FFFF, 0001FFFF, 0002FFFF, 0003FFFF]