Tests for fmadds.

This commit is contained in:
gibbed 2015-05-22 01:31:50 -05:00
parent 45cd0e4f8f
commit c3082381c5
1 changed files with 47 additions and 0 deletions

View File

@ -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