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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
# Test new instructions
2
 
3
        .text
4
        .global setpsw
5
setpsw:
6
        setpsw 0xc1
7
        setpsw 0xff
8
 
9
        .text
10
        .global clrpsw
11
clrpsw:
12
        clrpsw 0xc1
13
        clrpsw 0xff
14
 
15
        .text
16
        .global bset
17
bset:
18
        bset #0,@(4,r1)
19
        bset #1,@(4,r1)
20
        bset #7,@(4,r1)
21
 
22
        .text
23
        .global bclr
24
bclr:
25
        bclr #0,@(4,r1)
26
        bclr #1,@(4,r1)
27
        bclr #7,@(4,r1)
28
 
29
        .text
30
        .global btst
31
btst:
32
        btst #0,fp
33
        btst #1,fp
34
        btst #7,fp
35
        btst #1,fp || mv r0,r2
36
        mv r0,r2 || btst #1,fp
37
 
38
        .text
39
        .global divuh
40
divuh:
41
        divuh fp,fp
42
 
43
        .text
44
        .global divb
45
divb:
46
        divb fp,fp
47
 
48
        .text
49
        .global divub
50
divub:
51
        divub fp,fp
52
 
53
        .text
54
        .global remh
55
remh:
56
        remh fp,fp
57
 
58
        .text
59
        .global remuh
60
remuh:
61
        remuh fp,fp
62
 
63
        .text
64
        .global remb
65
remb:
66
        remb fp,fp
67
 
68
        .text
69
        .global remub
70
remub:
71
        remub fp,fp
72
 
73
        .text
74
        .global sll
75
sll:
76
        sll r0,r1 || sll r2,r3
77
        mul r0,r1 || sll r2,r3
78
        sll r0,r1 || mul r2,r3
79
        ldi r0,#1 || sll r2,r3
80
        sll r0,r1 || ldi r2,#1
81
 
82
        .text
83
        .global slli
84
slli:
85
        slli r0,#1 || slli r2,#31
86
        mul r0,r1 || slli r2,#31
87
        slli r0,#1 || mul r2,r3
88
        ldi r0,#1 || slli r2,#31
89
        slli r0,#1 || ldi r2,#1
90
 
91
        .text
92
        .global sra
93
sra:
94
        sra r0,r1 || sra r2,r3
95
        mul r0,r1 || sra r2,r3
96
        sra r0,r1 || mul r2,r3
97
        ldi r0,#1 || sra r2,r3
98
        sra r0,r1 || ldi r2,#1
99
 
100
        .text
101
        .global srai
102
srai:
103
        srai r0,#1 || srai r2,#31
104
        mul r0,r1 || srai r2,#31
105
        srai r0,#1 || mul r2,r3
106
        ldi r0,#1 || srai r2,#31
107
        srai r0,#1 || ldi r2,#1
108
 
109
        .text
110
        .global sra
111
srl:
112
        srl r0,r1 || srl r2,r3
113
        mul r0,r1 || srl r2,r3
114
        srl r0,r1 || mul r2,r3
115
        ldi r0,#1 || srl r2,r3
116
        srl r0,r1 || ldi r2,#1
117
 
118
        .text
119
        .global srai
120
srli:
121
        srli r0,#1 || srli r2,#31
122
        mul r0,r1 || srli r2,#31
123
        srli r0,#1 || mul r2,r3
124
        ldi r0,#1 || srli r2,#31
125
        srli r0,#1 || ldi r2,#1
126
 

powered by: WebSVN 2.1.0

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