~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/TestSuite/FPU/source/fpu_asm.S

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define _LANGUAGE_ASSEMBLY
 
2
#include "asm.h"
 
3
 
 
4
        //r3 = &fpscr
 
5
        //r4 = result
 
6
        .globl  TestFRES1
 
7
TestFRES1:
 
8
        lis                     r9,Unit01@ha
 
9
        addi            r9,r9,Unit01@l
 
10
        lfs  fr0, 0(r9)
 
11
        fres fr0, fr0
 
12
        stfs fr0, 0(r4)
 
13
        fres fr0, fr0
 
14
        stfs fr0, 0(r5)
 
15
        mffs fr1
 
16
        stfd fr1, 0(r3)
 
17
        blr
 
18
 
 
19
        .section .data
 
20
        .balign 4
 
21
Unit01:
 
22
        .float  0.0, 1.0
 
23
NrmData:
 
24
        .float  0.5, 3.0