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/] [fr30/] [cmp2.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
# fr30 testcase for cmp2 $u4,$Ri
2
# mach(): fr30
3
 
4
        .include "testutils.inc"
5
 
6
        START
7
 
8
        .text
9
        .global cmp2
10
cmp2:
11
        ; Test cmp2 $u4,$Ri
12
        mvi_h_gr        2,r8
13
        set_cc          0x0e            ; Set mask opposite of expected
14
        cmp2            -1,r8
15
        test_cc         0 0 0 1
16
 
17
        mvi_h_gr        0x7ffffffe,r8
18
        set_cc          0x04            ; Set mask opposite of expected
19
        cmp2            -2,r8
20
        test_cc         1 0 1 1
21
 
22
        mvi_h_gr        -16,r8
23
        set_cc          0x0b            ; Set mask opposite of expected
24
        cmp2            -16,r8
25
        test_cc         0 1 0 0
26
 
27
        pass

powered by: WebSVN 2.1.0

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