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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [cr16/] [add_test.s] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
        .text
2
        .global main
3
main:
4
        ###########
5
        # ADDB imm4/imm16, reg
6
        ###########
7
        addb    $0xf,r1
8
        addb    $0xff,r2
9
        addb    $0xfff,r1
10
        #addb    $0xffff,r2 // CHECK WITH CRASM 4.1
11
        addb    $20,r1
12
        addb    $10,r2
13
        addb    $11,r2
14
        ###########
15
        # ADDB reg, reg
16
        ###########
17
        addb    r1,r2
18
        addb    r2,r3
19
        addb    r3,r4
20
        addb    r5,r6
21
        addb    r6,r7
22
        addb    r7,r8
23
        ###########
24
        # ADDCB imm4/imm16, reg
25
        ###########
26
        addcb    $0xf,r1
27
        addcb    $0xff,r2
28
        addcb    $0xfff,r1
29
        #addcb    $0xffff,r2 // CHECK WITH CRASM 4.1
30
        addcb    $20,r1
31
        addcb    $10,r2
32
        addcb    $11,r2
33
        ###########
34
        # ADDCB reg, reg
35
        ###########
36
        addcb    r1,r2
37
        addcb    r2,r3
38
        addcb    r3,r4
39
        addcb    r5,r6
40
        addcb    r6,r7
41
        addcb    r7,r8
42
        ###########
43
        # ADDCW imm4/imm16, reg
44
        ###########
45
        addcw    $0xf,r1
46
        addcw    $0xff,r2
47
        addcw    $0xfff,r1
48
        #addcw    $0xffff,r2 # check with CRASM 4.1
49
        addcw    $20,r1
50
        addcw    $10,r2
51
        addcw    $11,r2
52
        ###########
53
        # ADDCW reg, reg
54
        ###########
55
        addcw    r1,r2
56
        addcw    r2,r3
57
        addcw    r3,r4
58
        addcw    r5,r6
59
        addcw    r6,r7
60
        addcw    r7,r8
61
        ###########
62
        # ADDW imm4/imm16, reg
63
        ###########
64
        addw    $0xf,r1
65
        addw    $0xff,r2
66
        addw    $0xfff,r1
67
        #addw    $0xffff,r2 // CHECK WITH CRASM 4.1
68
        addw    $20,r1
69
        addw    $10,r2
70
        ###########
71
        # ADDW reg, reg
72
        ###########
73
        addw    r1,r2
74
        addw    r2,r3
75
        addw    r3,r4
76
        addw    r5,r6
77
        addw    r6,r7
78
        addw    r7,r8
79
        ###########
80
        # ADDD imm4/imm16/imm20/imm32, regp
81
        ###########
82
        addd    $0xf,(r2,r1)
83
        addd    $0xB,(r2,r1)
84
        addd    $0xff,(r2,r1)
85
        addd    $0xfff,(r2,r1)
86
        addd    $0xffff,(r2,r1)
87
        addd    $0xfffff,(r2,r1)
88
        addd    $0xfffffff,(r2,r1)
89
        addd    $0xffffffff,(r2,r1)
90
        ###########
91
        # ADDD regp, regp
92
        ###########
93
        addd    (r4,r3),(r2,r1)
94
        addd    (r4,r3),(r2,r1)
95
        addd    $10,(sp)
96
        addd    $14,(sp)
97
        addd    $11,(sp)
98
        addd    $8,(sp)

powered by: WebSVN 2.1.0

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