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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [shori.cgs] - Blame information for rev 828

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

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for shori $imm16, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
 
10
init:
11
        pta wrong, tr0
12
 
13
shori1:
14
        movi 1, r0
15
        shori 7, r0
16
        # check it.
17
        andi r0, 15, r7
18
        bnei r7, 7, tr0
19
        shlri r0, 16, r0
20
        bnei r0, 1, tr0
21
 
22
shori2:
23
        # Test for zero extension bug reported by
24
        # Alexandre Oliva .
25
        movi 0, r0
26
        shori 65535, r0
27
        # check it.
28
        movi 0xffff, r1
29
        bne r0, r1, tr0
30
 
31
okay:
32
        pass
33
 
34
wrong:
35
        fail

powered by: WebSVN 2.1.0

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