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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [d10v-elf/] [t-mac.s] - Blame information for rev 820

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

Line No. Rev Author Line
1 227 jeremybenn
.include "t-macros.i"
2
 
3
        start
4
 
5
        ;; clear FX
6
        loadpsw2 0x8005
7
        loadacc2 a1 0x7f 0xffff 0xffff
8
        load r8 0xffff
9
        load r9 0x8001
10
test_macu1:
11
        MACU a1, r9, r8
12
        checkacc2 1 a1 0x80 0x8000 0x7FFE
13
 
14
        ;; set FX
15
        loadpsw2 0x8085
16
        loadacc2 a1 0x7f 0xffff 0xffff
17
        load r8 0xffff
18
        load r9 0x8001
19
test_macu2:
20
        MACU a1, r9, r8
21
        checkacc2 2 a1 0x81 0x0000 0xfffd
22
 
23
 
24
 
25
 
26
        ;; clear FX
27
        ldi r2, #0x8005
28
        mvtc r2, cr0
29
 
30
        loadacc2 a1 0x7f 0xffff 0xffff
31
        ldi r8, #0xffff
32
        ldi r9, #0x7FFF
33
test_macsu1:
34
        MACSU a1, r9, r8
35
        checkacc2 3 a1 0x80 0x7FFE 0x8000
36
 
37
        ;; set FX
38
        ldi r2, #0x8085
39
        mvtc r2, cr0
40
 
41
        loadacc2 a1 0x7f 0xffff 0xffff
42
        ldi r8, #0xffff
43
        ldi r9, #0x7FFF
44
test_macsu2:
45
        MACSU a1, r9, r8
46
        checkacc2 4 a1 0x80 0xfffd 0x0001
47
 
48
        ;; clear FX
49
        ldi r2, #0x8005
50
        mvtc r2, cr0
51
 
52
        loadacc2 a1 0x7f 0xffff 0xffff
53
        ldi r8, 0xffff
54
        ldi r9, 0x8001
55
test_macsu3:
56
        MACSU a1, r9, r8
57
        checkacc2 5 a1 0x7F 0x8001 0x7FFE
58
 
59
        ;; set FX
60
        ldi r2, #0x8085
61
        mvtc r2, cr0
62
 
63
        loadacc2 a1 0x7f 0xffff 0xffff
64
        ldi r8, #0xffff
65
        ldi r9, #0x8001
66
test_macsu4:
67
        MACSU a1, r9, r8
68
        checkacc2 6 a1 0x7f 0x0002 0xFFFD
69
 
70
        exit0
71
 

powered by: WebSVN 2.1.0

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