Tests: fadd/fmul
This commit is contained in:
parent
6fe545b3e9
commit
5c10d1cdaa
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue