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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [sh64/] [compact/] [div0s.cgs] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 jlechner
# sh testcase for div0s $rm, $rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
 
6
        .include "compact/testutils.inc"
7
 
8
        start
9
init:
10
        mov #0, r0
11
        mov #3, r1
12
        mov #4, r2
13
        neg r1, r3
14
        neg r2, r4
15
 
16
perm1:
17
        div0s r0, r0
18
        bt wrong
19
        div0s r0, r1
20
        bt wrong
21
        div0s r1, r0
22
        bt wrong
23
 
24
perm2:
25
        div0s r0, r4
26
        bf wrong
27
        div0s r4, r0
28
        bf wrong
29
 
30
perm3:
31
        div0s r1, r2
32
        bt wrong
33
        div0s r2, r1
34
        bt wrong
35
 
36
perm4:
37
        div0s r3, r4
38
        bt wrong
39
        div0s r4, r3
40
        bt wrong
41
 
42
perm5:
43
        div0s r1, r1
44
        bt wrong
45
        div0s r3, r3
46
        bt wrong
47
 
48
okay:
49
        pass
50
 
51
wrong:
52
        fail

powered by: WebSVN 2.1.0

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