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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [sh64/] [media/] [mulul.cgs] - Blame information for rev 373

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

Line No. Rev Author Line
1 330 jeremybenn
# sh testcase for mulu.l $rm, $rn, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
 
6
        .include "media/testutils.inc"
7
 
8
        start
9
 
10
        .global mulul
11
init:
12
        pta wrong, tr0
13
 
14
mulul1:
15
        movi 0, r0
16
        mulu.l r0, r0, r1
17
        bnei r1, 0, tr0
18
 
19
mulul2:
20
        movi 0, r0
21
        movi 1, r1
22
        mulu.l r0, r1, r2
23
        bnei r2, 0, tr0
24
 
25
mulul3:
26
        movi 1, r0
27
        movi 0, r1
28
        mulu.l r0, r1, r2
29
        bnei r2, 0, tr0
30
 
31
mulul4:
32
        movi 1, r0
33
        movi 1, r1
34
        mulu.l r0, r1, r2
35
        bnei r2, 1, tr0
36
 
37
mulul5:
38
        movi 2, r0
39
        movi 9, r1
40
        mulu.l r0, r1, r2
41
        bnei r2, 18, tr0
42
 
43
mulul6:
44
        movi 2, r0
45
        movi -9, r1
46
        mulu.l r0, r1, r2
47
        beqi r2, -18, tr0
48
 
49
okay:
50
        pass
51
 
52
wrong:
53
        fail
54
 

powered by: WebSVN 2.1.0

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