mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 09:09:12 +01:00
25 lines
338 B
ArmAsm
25 lines
338 B
ArmAsm
|
#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
|