OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [stsl-fpscr.cgs] - Blame information for rev 280

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for sts.l fpscr, @-$rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
        .global stsl_fpscr
11
stsl_fpscr:
12
        mov #40, r0
13
        shll8 r0
14
        # Preserve r0.
15
        mov r0, r7
16
        sts.l fpscr, @-r0
17
 
18
check:
19
        # Ensure r0 is decremented.
20
        add #4, r0
21
        cmp/eq r0, r7
22
        bf wrong
23
 
24
okay:
25
        pass
26
wrong:
27
        fail
28
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.