From c3082381c5a71cde903a719f2fa3995b267aad0a Mon Sep 17 00:00:00 2001 From: gibbed Date: Fri, 22 May 2015 01:31:50 -0500 Subject: [PATCH] Tests for fmadds. --- src/xenia/cpu/frontend/test/instr_fmadds.s | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/xenia/cpu/frontend/test/instr_fmadds.s diff --git a/src/xenia/cpu/frontend/test/instr_fmadds.s b/src/xenia/cpu/frontend/test/instr_fmadds.s new file mode 100644 index 000000000..c4e05fb03 --- /dev/null +++ b/src/xenia/cpu/frontend/test/instr_fmadds.s @@ -0,0 +1,47 @@ +test_fmadds_1: + #_ REGISTER_IN f1 0.0 + #_ REGISTER_IN f2 5.0 + #_ REGISTER_IN f3 5.0 + #_ REGISTER_IN f4 0.0 + fmadds f1, f2, f3, f4 + blr + #_ REGISTER_OUT f1 25.0 + #_ REGISTER_OUT f2 5.0 + #_ REGISTER_OUT f3 5.0 + #_ REGISTER_OUT f4 0.0 + +test_fmadds_2: + #_ REGISTER_IN f1 0.0 + #_ REGISTER_IN f2 5.0 + #_ REGISTER_IN f3 0.0 + #_ REGISTER_IN f4 15.0 + fmadds f1, f2, f3, f4 + blr + #_ REGISTER_OUT f1 15.0 + #_ REGISTER_OUT f2 5.0 + #_ REGISTER_OUT f3 0.0 + #_ REGISTER_OUT f4 15.0 + +test_fmadds_3: + #_ REGISTER_IN f1 0.0 + #_ REGISTER_IN f2 5.0 + #_ REGISTER_IN f3 5.0 + #_ REGISTER_IN f4 15.0 + fmadds f1, f2, f3, f4 + blr + #_ REGISTER_OUT f1 40.0 + #_ REGISTER_OUT f2 5.0 + #_ REGISTER_OUT f3 5.0 + #_ REGISTER_OUT f4 15.0 + +test_fmadds_4: + #_ REGISTER_IN f1 0.0 + #_ REGISTER_IN f2 9999.99 + #_ REGISTER_IN f3 9999.99 + #_ REGISTER_IN f4 9999.99 + fmadds f1, f2, f3, f4 + blr + #_ REGISTER_OUT f1 100009800.0 + #_ REGISTER_OUT f2 9999.99 + #_ REGISTER_OUT f3 9999.99 + #_ REGISTER_OUT f4 9999.99