Logo
Explore Help
Sign In
feedc0de/dolphin
1
0
Fork 0
You've already forked dolphin
forked from dolphin-emu/dolphin
Code Pull Requests Activity
Files
a41c1b2d0a9fab51f8a75ccdb7dba0890f766820
dolphin/Source/TestSuite/FPU/source/fpu_asm.S

25 lines
338 B
ArmAsm
Raw Normal View History

TestSuite: start an FPU test. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3429 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-13 20:08:51 +00:00
#define _LANGUAGE_ASSEMBLY
#include "asm.h"
//r3 = &fpscr
//r4 = result
TestSuite: fix bug in first fpu test (must use stfd to get value of FPSCR, stfs corrupts the value trying to convert to single precision) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3430 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-13 20:20:48 +00:00
.globl TestFRES1
TestSuite: start an FPU test. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3429 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-13 20:08:51 +00:00
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
TestSuite: fix bug in first fpu test (must use stfd to get value of FPSCR, stfs corrupts the value trying to convert to single precision) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3430 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-13 20:20:48 +00:00
stfd fr1, 0(r3)
TestSuite: start an FPU test. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3429 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-13 20:08:51 +00:00
blr
.section .data
.balign 4
Unit01:
.float 0.0, 1.0
NrmData:
.float 0.5, 3.0
Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 30ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API