From 95d934498599d58dad3ecb321d56b22674eeba71 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 16 Aug 2015 05:14:40 -0500 Subject: [PATCH] Another test for vpkswss. --- src/xenia/cpu/frontend/testing/instr_vpkswss.s | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/xenia/cpu/frontend/testing/instr_vpkswss.s b/src/xenia/cpu/frontend/testing/instr_vpkswss.s index f4fbd1f1c..90ba9ed91 100644 --- a/src/xenia/cpu/frontend/testing/instr_vpkswss.s +++ b/src/xenia/cpu/frontend/testing/instr_vpkswss.s @@ -15,3 +15,15 @@ test_vpkswss_1: #_ REGISTER_OUT v3 [7FFFFFFF, 80000000, 00000000, 00000004] #_ REGISTER_OUT v4 [7FFFFFFF, 80000000, 00000000, 00000008] #_ REGISTER_OUT v5 [7FFF8000, 00000004, 7FFF8000, 00000008] + +test_vpkswss_2: + # {-1, -32768, 0, 32767} + #_ REGISTER_IN v3 [FFFFFFFF, FFFF8000, 00000000, 00007FFF] + # {-2, -32769, 1, 32768} + #_ REGISTER_IN v4 [FFFFFFFE, FFFF7FFF, 00000001, 00008000] + vpkswss v5, v3, v4 + blr + #_ REGISTER_OUT v3 [FFFFFFFF, FFFF8000, 00000000, 00007FFF] + #_ REGISTER_OUT v4 [FFFFFFFE, FFFF7FFF, 00000001, 00008000] + # {-1, -32768, 0, 32767, -2, -32768, 1, 32767} + #_ REGISTER_OUT v5 [FFFF8000, 00007FFF, FFFE8000, 00017FFF]