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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cr16/] [ashub.cgs] - Blame information for rev 816

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

Line No. Rev Author Line
1 227 jeremybenn
# cr16 testcase for ashub $sr,$dr
2
# mach(): cr16
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global ashub
9
ashub:
10
 
11
        movw  $0x12f1, r4
12
        movw  $4,r5
13
        ashub       r5, r4
14
 
15
        cmpw $0x1210, r4
16
        beq ok
17
not_ok:
18
        fail
19
ok:
20
        movw  $0x12f1, r4
21
        movw  $-4,r5
22
        ashub       r5, r4
23
 
24
        test_h_gr r4, 0x12ff
25
 
26
        pass

powered by: WebSVN 2.1.0

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