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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [extsw.cgs] - Blame information for rev 238

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

Line No. Rev Author Line
1 227 jeremybenn
# sh testcase for exts.w $rm, $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 extsw
11
extsw:
12
        mov #42, r1
13
        exts.w r1, r2
14
        assert r2, #42
15
 
16
another:
17
        mov #0, r0
18
        or #255, r0
19
        shll8 r0
20
        exts.w r0, r1
21
 
22
        mov #-1, r7
23
        shll8 r7
24
        cmp/eq r1, r7
25
        bf wrong
26
 
27
okay:
28
        pass
29
 
30
wrong:
31
        fail
32
 

powered by: WebSVN 2.1.0

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