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/] [media/] [swapq.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 swap.q $rm, $rn, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
init:
10
        movi 10, r0
11
        shlli r0, 8, r0
12
        ori r0, 20, r0
13
        shlli r0, 8, r0
14
        ori r0, 30, r0
15
        shlli r0, 8, r0
16
        ori r0, 40, r0
17
        shlli r0, 8, r0
18
        ori r0, 50, r0
19
        shlli r0, 8, r0
20
        ori r0, 60, r0
21
        shlli r0, 8, r0
22
        ori r0, 70, r0
23
        shlli r0, 8, r0
24
        ori r0, 80, r0
25
 
26
        # Set up two address operands.
27
 
28
        movi 40, r1
29
        shlli r1, 8, r1
30
        movi 8, r2
31
 
32
swapq:
33
        swap.q r1, r2, r0
34
 
35
okay:
36
        pass

powered by: WebSVN 2.1.0

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