commit
6816597a1b
|
@ -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,29 @@
|
|||
test_fmadd_1:
|
||||
#_ REGISTER_IN f1 0.0
|
||||
#_ REGISTER_IN f2 5.0
|
||||
#_ REGISTER_IN f3 5.0
|
||||
#_ REGISTER_IN f4 0.0
|
||||
fmadd 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_fmadd_2:
|
||||
#_ REGISTER_IN f1 0.0
|
||||
#_ REGISTER_IN f2 5.0
|
||||
#_ REGISTER_IN f3 0.0
|
||||
#_ REGISTER_IN f4 15.0
|
||||
fmadd f1, f2, f3, f4
|
||||
blr
|
||||
#_ REGISTER_OUT f1 15.0
|
||||
|
||||
test_fmadd_3:
|
||||
#_ REGISTER_IN f1 0.0
|
||||
#_ REGISTER_IN f2 5.0
|
||||
#_ REGISTER_IN f3 5.0
|
||||
#_ REGISTER_IN f4 15.0
|
||||
fmadd f1, f2, f3, f4
|
||||
blr
|
||||
#_ REGISTER_OUT f1 40.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