From a4b950f1e981fe184a92051089d49ee3b5adc120 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 23 May 2015 18:14:07 -0500 Subject: [PATCH] Fix vmaddfp test --- src/xenia/cpu/frontend/test/instr_vmaddfp.s | 33 +++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/frontend/test/instr_vmaddfp.s b/src/xenia/cpu/frontend/test/instr_vmaddfp.s index f943abe7e..74005af4c 100644 --- a/src/xenia/cpu/frontend/test/instr_vmaddfp.s +++ b/src/xenia/cpu/frontend/test/instr_vmaddfp.s @@ -3,8 +3,37 @@ test_vmaddfp_1: # 1.0, 1.5, 1.1, 1.9 vmaddfp v3, v4, v4, v4 blr - #_ REGISTER_OUT v3 [00000001, 00000001, 00000001, 00000001] - #_ REGISTER_OUT v4 [40000000, 40700000, 4013d70a, 40b051eb] + #_ REGISTER_OUT v3 [40000000, 40700000, 4013d70a, 40b051eb] + #_ REGISTER_OUT v4 [3f800000, 3fc00000, 3f8ccccd, 3ff33333] # 2.0, 3.75, 2.31, 5.51 # 40b051eb is actually 5.50999975, not 5.51? # 40b051ec is 5.51 + +test_vmaddfp_2: + #_ REGISTER_IN v4 [3f800000, 3f800000, 3f800000, 3f800000] + #_ REGISTER_IN v5 [3f800000, 3f800000, 3f800000, 3f800000] + #_ REGISTER_IN v6 [3f800000, 3f800000, 3f800000, 3f800000] + # 1.0, 1.5, 1.1, 1.9 + vmaddfp v3, v4, v5, v6 + blr + #_ REGISTER_OUT v3 [40000000, 40000000, 40000000, 40000000] + #_ REGISTER_OUT v4 [3f800000, 3f800000, 3f800000, 3f800000] + #_ REGISTER_OUT v5 [3f800000, 3f800000, 3f800000, 3f800000] + #_ REGISTER_OUT v6 [3f800000, 3f800000, 3f800000, 3f800000] + +test_vmaddfp_3: + # v4 = 5, 5, 1, 1 + # v5 = 5, 5, 1, 1 + # v6 = 1, 1, 1, 1 + #_ REGISTER_IN v4 [40a00000, 40a00000, 3f800000, 3f800000] + #_ REGISTER_IN v5 [40a00000, 40a00000, 3f800000, 3f800000] + #_ REGISTER_IN v6 [3f800000, 3f800000, 3f800000, 3f800000] + # 1.0, 1.5, 1.1, 1.9 + vmaddfp v3, v4, v5, v6 + blr + # v3 = 26.0, 26.0, 2.0, 2.0 + #_ REGISTER_OUT v3 [41d00000, 41d00000, 40000000, 40000000] + #_ REGISTER_OUT v4 [40a00000, 40a00000, 3f800000, 3f800000] + #_ REGISTER_OUT v5 [40a00000, 40a00000, 3f800000, 3f800000] + #_ REGISTER_OUT v6 [3f800000, 3f800000, 3f800000, 3f800000] + \ No newline at end of file