mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
TestSuite: start an FPU test.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3429 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
24
Source/TestSuite/FPU/source/fpu_asm.S
Normal file
24
Source/TestSuite/FPU/source/fpu_asm.S
Normal file
@ -0,0 +1,24 @@
|
||||
#define _LANGUAGE_ASSEMBLY
|
||||
#include "asm.h"
|
||||
|
||||
.globl TestFRES1
|
||||
//r3 = &fpscr
|
||||
//r4 = result
|
||||
TestFRES1:
|
||||
lis r9,Unit01@ha
|
||||
addi r9,r9,Unit01@l
|
||||
lfs fr0, 0(r9)
|
||||
fres fr0, fr0
|
||||
stfs fr0, 0(r4)
|
||||
fres fr0, fr0
|
||||
stfs fr0, 0(r5)
|
||||
mffs fr1
|
||||
stfs fr1, 0(r3)
|
||||
blr
|
||||
|
||||
.section .data
|
||||
.balign 4
|
||||
Unit01:
|
||||
.float 0.0, 1.0
|
||||
NrmData:
|
||||
.float 0.5, 3.0
|
Reference in New Issue
Block a user