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/] [compact/] [cmpeqi.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 cmp/eq #$imm8, r0 -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
 
10
zeroes:
11
        mov #0, r0
12
        cmp/eq #0, r0
13
        bf wrong
14
 
15
zero1:
16
        mov #0, r0
17
        cmp/eq #1, r0
18
        bt wrong
19
 
20
zero2:
21
        mov #1, r0
22
        cmp/eq #0, r0
23
        bt wrong
24
 
25
equal:
26
        mov #192, r0
27
        cmp/eq #192, r0
28
        bf wrong
29
 
30
sign:
31
        mov #255, r0
32
        cmp/eq #255, r0
33
        bf wrong
34
 
35
okay:
36
        pass
37
 
38
wrong:
39
        fail

powered by: WebSVN 2.1.0

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