Adding frsqrte and fixing fsqrt o_o
This commit is contained in:
BIN
src/xenia/cpu/frontend/test/bin/instr_frsqrte.bin
Normal file
BIN
src/xenia/cpu/frontend/test/bin/instr_frsqrte.bin
Normal file
Binary file not shown.
13
src/xenia/cpu/frontend/test/bin/instr_frsqrte.dis
Normal file
13
src/xenia/cpu/frontend/test/bin/instr_frsqrte.dis
Normal file
@@ -0,0 +1,13 @@
|
||||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_frsqrte_1>:
|
||||
100000: fc 20 08 34 frsqrte f1,f1
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_frsqrte_2>:
|
||||
100008: fc 20 08 34 frsqrte f1,f1
|
||||
10000c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100010 <test_frsqrte_3>:
|
||||
100010: fc 20 08 34 frsqrte f1,f1
|
||||
100014: 4e 80 00 20 blr
|
||||
3
src/xenia/cpu/frontend/test/bin/instr_frsqrte.map
Normal file
3
src/xenia/cpu/frontend/test/bin/instr_frsqrte.map
Normal file
@@ -0,0 +1,3 @@
|
||||
0000000000000000 t test_frsqrte_1
|
||||
0000000000000008 t test_frsqrte_2
|
||||
0000000000000010 t test_frsqrte_3
|
||||
BIN
src/xenia/cpu/frontend/test/bin/instr_fsqrt.bin
Normal file
BIN
src/xenia/cpu/frontend/test/bin/instr_fsqrt.bin
Normal file
Binary file not shown.
13
src/xenia/cpu/frontend/test/bin/instr_fsqrt.dis
Normal file
13
src/xenia/cpu/frontend/test/bin/instr_fsqrt.dis
Normal file
@@ -0,0 +1,13 @@
|
||||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_fsqrt_1>:
|
||||
100000: fc 20 08 2c fsqrt f1,f1
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_fsqrt_2>:
|
||||
100008: fc 20 08 2c fsqrt f1,f1
|
||||
10000c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100010 <test_fsqrt_3>:
|
||||
100010: fc 20 08 2c fsqrt f1,f1
|
||||
100014: 4e 80 00 20 blr
|
||||
3
src/xenia/cpu/frontend/test/bin/instr_fsqrt.map
Normal file
3
src/xenia/cpu/frontend/test/bin/instr_fsqrt.map
Normal file
@@ -0,0 +1,3 @@
|
||||
0000000000000000 t test_fsqrt_1
|
||||
0000000000000008 t test_fsqrt_2
|
||||
0000000000000010 t test_fsqrt_3
|
||||
19
src/xenia/cpu/frontend/test/instr_frsqrte.s
Normal file
19
src/xenia/cpu/frontend/test/instr_frsqrte.s
Normal file
@@ -0,0 +1,19 @@
|
||||
test_frsqrte_1:
|
||||
#_ REGISTER_IN f1 1.0
|
||||
frsqrte f1, f1
|
||||
blr
|
||||
#_ REGISTER_OUT f1 0.99975585937500000
|
||||
# want: 0.97
|
||||
|
||||
test_frsqrte_2:
|
||||
#_ REGISTER_IN f1 64.0
|
||||
frsqrte f1, f1
|
||||
blr
|
||||
#_ REGISTER_OUT f1 0.12496948242187500
|
||||
|
||||
test_frsqrte_3:
|
||||
#_ REGISTER_IN f1 0.5
|
||||
frsqrte f1, f1
|
||||
blr
|
||||
#_ REGISTER_OUT f1 1.4138183593750000
|
||||
# want: 1.375
|
||||
17
src/xenia/cpu/frontend/test/instr_fsqrt.s
Normal file
17
src/xenia/cpu/frontend/test/instr_fsqrt.s
Normal file
@@ -0,0 +1,17 @@
|
||||
test_fsqrt_1:
|
||||
#_ REGISTER_IN f1 1.0
|
||||
fsqrt f1, f1
|
||||
blr
|
||||
#_ REGISTER_OUT f1 1.0000000000000000
|
||||
|
||||
test_fsqrt_2:
|
||||
#_ REGISTER_IN f1 64.0
|
||||
fsqrt f1, f1
|
||||
blr
|
||||
#_ REGISTER_OUT f1 8.0000000000000000
|
||||
|
||||
test_fsqrt_3:
|
||||
#_ REGISTER_IN f1 0.5
|
||||
fsqrt f1, f1
|
||||
blr
|
||||
#_ REGISTER_OUT f1 0.70710678118654757
|
||||
Reference in New Issue
Block a user