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/] [addzl.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 addz.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
init:
10
        pta wrong, tr0
11
 
12
addzl1:
13
        movi 1, r0
14
        movi 2, r1
15
        addz.l r0, r1, r2
16
        bnei r2, 3, tr0
17
 
18
addzl2:
19
        movi 1, r0
20
        shlli r0, 32, r0
21
        addi r0, 2, r0
22
        movi 1, r1
23
        shlli r1, 32, r1
24
        addi r1, 2, r1
25
        addz.l r0, r1, r2
26
        bnei r2, 4, tr0
27
 
28
addzl3:
29
        movi 1, r0
30
        shlli r0, 31, r0
31
        addi r0, 2, r0
32
        movi 2, r1
33
        addz.l r0, r1, r2
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.