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/] [ldsl-fpscr.cgs] - Blame information for rev 437

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

Line No. Rev Author Line
1 24 jeremybenn
# sh testcase for lds.l @${rn}+, fpscr -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
        mov #40, r0
11
        shll8 r0
12
        # save address for later examination.
13
        mov r0, r1
14
 
15
        # Build up a distinctive bit pattern.
16
        mov #1, r2
17
        shll8 r2
18
        add #12, r2
19
        shll8 r2
20
        add #85, r2
21
        shll8 r2
22
        add #170, r2
23
        # Store it in memory.
24
        mov.l r2, @r0
25
 
26
        lds.l @r0+, fpscr
27
 
28
check:
29
        # Read it back.
30
        sts fpscr, r3
31
        cmp/eq r2, r3
32
        bf wrong
33
 
34
inc:
35
        # Test for proper post-increment.
36
        add #4, r1
37
        cmp/eq r0, r1
38
        bf wrong
39
 
40
okay:
41
        pass
42
wrong:
43
        fail

powered by: WebSVN 2.1.0

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