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/] [media/] [maddw.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 madd.w $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
maddw:
13
        # Load { 1 2 3 4 } into R0.
14
        _packw 1, 2, 3, 4, r0
15
 
16
        # Load { 3 4 5 6 } into R1.
17
        _packw 3, 4, 5, 6, r1
18
 
19
        # Add slices to produce { 4 6 8 10 }.
20
        madd.w r0, r1, r2
21
 
22
        _packw 4, 6, 8, 10, r3
23
        bne r2, r3, tr0
24
 
25
okay:
26
        pass
27
 
28
wrong:
29
        fail

powered by: WebSVN 2.1.0

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