From c6b941a7091cf0da59533b7a58093662c8aa2fe1 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 18 Aug 2015 00:27:27 -0700 Subject: [PATCH] Normalizing tests. --- src/xenia/cpu/frontend/testing/instr_rldicl.s | 36 +++++++++---------- src/xenia/cpu/frontend/testing/instr_rldicr.s | 36 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/xenia/cpu/frontend/testing/instr_rldicl.s b/src/xenia/cpu/frontend/testing/instr_rldicl.s index 70f51c35b..321d4ebf1 100644 --- a/src/xenia/cpu/frontend/testing/instr_rldicl.s +++ b/src/xenia/cpu/frontend/testing/instr_rldicl.s @@ -1,9 +1,9 @@ -.macro make_test_constant dest - lis \dest, 0x0123 - ori \dest, \dest, 0x4567 +.macro make_full_test_constant dest, a, b, c, d + lis \dest, \a + ori \dest, \dest, \b sldi \dest, \dest, 32 - lis r3, 0x89AB - ori r3, r3, 0xCDEF + lis r3, \c + ori r3, r3, \d clrldi r3, r3, 32 or \dest, \dest, r3 .endm @@ -16,7 +16,7 @@ test_rldicl_1: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_1_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 24, 0 blr #_ REGISTER_OUT r3 0x6789abcdef012345 @@ -30,7 +30,7 @@ test_rldicl_2: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_2_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 24, 8 blr #_ REGISTER_OUT r3 0x0089abcdef012345 @@ -44,7 +44,7 @@ test_rldicl_3: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_3_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 24, 63 blr #_ REGISTER_OUT r3 0x0000000000000001 @@ -58,7 +58,7 @@ test_rldicl_4: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_4_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 0, 0 blr #_ REGISTER_OUT r3 0x0123456789abcdef @@ -72,7 +72,7 @@ test_rldicl_5: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_5_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 0, 63 blr #_ REGISTER_OUT r3 0x0000000000000001 @@ -86,7 +86,7 @@ test_rldicl_6: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_6_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 0, 8 blr #_ REGISTER_OUT r3 0x0023456789abcdef @@ -100,7 +100,7 @@ test_rldicl_7: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_7_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 63, 0 blr #_ REGISTER_OUT r3 0x8091a2b3c4d5e6f7 @@ -114,7 +114,7 @@ test_rldicl_8: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_8_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 63, 63 blr #_ REGISTER_OUT r3 0x0000000000000001 @@ -128,7 +128,7 @@ test_rldicl_9: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicl_9_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicl r3, r4, 31, 0 blr #_ REGISTER_OUT r3 0xc4d5e6f78091a2b3 @@ -158,7 +158,7 @@ test_srdi_1: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_srdi_1_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 srdi r3, r3, 0 srdi r4, r4, 0 @@ -176,7 +176,7 @@ test_srdi_2: #_ REGISTER_OUT r4 0x0091a2b3c4d5e6f7 test_srdi_2_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 srdi r3, r3, 1 srdi r4, r4, 1 @@ -194,7 +194,7 @@ test_srdi_3: #_ REGISTER_OUT r4 0x0000000001234567 test_srdi_3_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 srdi r3, r3, 32 srdi r4, r4, 32 @@ -212,7 +212,7 @@ test_srdi_4: #_ REGISTER_OUT r4 0x0000000000000000 test_srdi_4_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 srdi r3, r3, 63 srdi r4, r4, 63 diff --git a/src/xenia/cpu/frontend/testing/instr_rldicr.s b/src/xenia/cpu/frontend/testing/instr_rldicr.s index f001e5d21..ab68ba1ec 100644 --- a/src/xenia/cpu/frontend/testing/instr_rldicr.s +++ b/src/xenia/cpu/frontend/testing/instr_rldicr.s @@ -1,9 +1,9 @@ -.macro make_test_constant dest - lis \dest, 0x0123 - ori \dest, \dest, 0x4567 +.macro make_full_test_constant dest, a, b, c, d + lis \dest, \a + ori \dest, \dest, \b sldi \dest, \dest, 32 - lis r3, 0x89AB - ori r3, r3, 0xCDEF + lis r3, \c + ori r3, r3, \d clrldi r3, r3, 32 or \dest, \dest, r3 .endm @@ -16,7 +16,7 @@ test_rldicr_1: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_1_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 24, 0 blr #_ REGISTER_OUT r3 0x0000000000000000 @@ -30,7 +30,7 @@ test_rldicr_2: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_2_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 24, 8 blr #_ REGISTER_OUT r3 0x6780000000000000 @@ -44,7 +44,7 @@ test_rldicr_3: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_3_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 24, 63 blr #_ REGISTER_OUT r3 0x6789abcdef012345 @@ -58,7 +58,7 @@ test_rldicr_4: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_4_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 0, 0 blr #_ REGISTER_OUT r3 0x0000000000000000 @@ -72,7 +72,7 @@ test_rldicr_5: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_5_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 0, 63 blr #_ REGISTER_OUT r3 0x0123456789abcdef @@ -86,7 +86,7 @@ test_rldicr_6: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_6_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 0, 8 blr #_ REGISTER_OUT r3 0x0100000000000000 @@ -100,7 +100,7 @@ test_rldicr_7: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_7_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 63, 0 blr #_ REGISTER_OUT r3 0x8000000000000000 @@ -114,7 +114,7 @@ test_rldicr_8: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_8_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 63, 63 blr #_ REGISTER_OUT r3 0x8091a2b3c4d5e6f7 @@ -128,7 +128,7 @@ test_rldicr_9: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_rldicr_9_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF rldicr r3, r4, 31, 0 blr #_ REGISTER_OUT r3 0x8000000000000000 @@ -144,7 +144,7 @@ test_sldi_1: #_ REGISTER_OUT r4 0x0123456789ABCDEF test_sldi_1_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 sldi r3, r3, 0 sldi r4, r4, 0 @@ -162,7 +162,7 @@ test_sldi_2: #_ REGISTER_OUT r4 0x02468acf13579bde test_sldi_2_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 sldi r3, r3, 1 sldi r4, r4, 1 @@ -180,7 +180,7 @@ test_sldi_3: #_ REGISTER_OUT r4 0x89abcdef00000000 test_sldi_3_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 sldi r3, r3, 32 sldi r4, r4, 32 @@ -198,7 +198,7 @@ test_sldi_4: #_ REGISTER_OUT r4 0x8000000000000000 test_sldi_4_constant: - make_test_constant r4 + make_full_test_constant r4, 0x0123, 0x4567, 0x89AB, 0xCDEF li r3, -1 sldi r3, r3, 63 sldi r4, r4, 63