Tests: fadd/fmul

This commit is contained in:
Dr. Chat 2015-05-14 18:02:26 -05:00
parent 6fe545b3e9
commit 5c10d1cdaa
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,20 @@
test_fadd_1:
#_ REGISTER_IN f1 1.0
#_ REGISTER_IN f2 2.0
fadd f3, f1, f2
blr
#_ REGISTER_OUT f3 3.0
test_fadd_2:
#_ REGISTER_IN f1 0.0
#_ REGISTER_IN f2 0.0
fadd f3, f1, f2
blr
#_ REGISTER_OUT f3 0.0
test_fadd_3:
#_ REGISTER_IN f1 -200.0
#_ REGISTER_IN f2 200.0
fadd f3, f1, f2
blr
#_ REGISTER_OUT f3 0.0

View File

@ -0,0 +1,20 @@
test_fmul_1:
#_ REGISTER_IN f1 5.0
#_ REGISTER_IN f2 5.0
fmul f3, f1, f2
blr
#_ REGISTER_OUT f3 25.0
test_fmul_2:
#_ REGISTER_IN f1 5.0
#_ REGISTER_IN f2 0.0
fmul f3, f1, f2
blr
#_ REGISTER_OUT f3 0.0
test_fmul_3:
#_ REGISTER_IN f1 -2.0
#_ REGISTER_IN f2 2.0
fmul f3, f1, f2
blr
#_ REGISTER_OUT f3 -4.0