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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [maxq20/] [bits.s] - Blame information for rev 438

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

Line No. Rev Author Line
1 205 julius
;# bits.s
2
;# checks all the bit operations in MAXQ20
3
 
4
.text
5
foo:
6
 MOVE C, ACC.0
7
 MOVE C, ACC.1
8
 MOVE C, ACC.2
9
 MOVE C, ACC.3
10
 MOVE C, ACC.4
11
 MOVE C, ACC.5
12
 MOVE C, ACC.6
13
 MOVE C, ACC.7          ;8 bits on a MAXQ10 machine
14
 MOVE C, ACC.8
15
 MOVE C, ACC.9
16
 MOVE C, ACC.10
17
 MOVE C, ACC.11
18
 MOVE C, ACC.12
19
 MOVE C, ACC.13
20
 MOVE C, ACC.14
21
 MOVE C, ACC.15
22
 MOVE C, #0
23
 MOVE C, #1
24
 MOVE ACC.0, C
25
 MOVE ACC.1, C
26
 MOVE ACC.2, C
27
 MOVE ACC.3, C
28
 MOVE ACC.4, C
29
 MOVE ACC.5, C
30
 MOVE ACC.6, C
31
 MOVE ACC.7, C          ;8 bits on a MAXQ10 machine
32
 MOVE ACC.8, C
33
 MOVE ACC.9, C
34
 MOVE ACC.10, C
35
 MOVE ACC.11, C
36
 MOVE ACC.12, C
37
 MOVE ACC.13, C
38
 MOVE ACC.14, C
39
 MOVE ACC.15, C
40
 CPL C
41
 AND ACC.0       ;AND with carry
42
 AND ACC.1
43
 AND ACC.2
44
 AND ACC.3
45
 AND ACC.4
46
 AND ACC.5
47
 AND ACC.6
48
 AND ACC.7
49
 AND ACC.8
50
 AND ACC.9
51
 AND ACC.10
52
 AND ACC.11
53
 AND ACC.12
54
 AND ACC.13
55
 AND ACC.14
56
 AND ACC.15
57
 OR ACC.0        ;OR with carry
58
 OR ACC.1
59
 OR ACC.2
60
 OR ACC.3
61
 OR ACC.4
62
 OR ACC.5
63
 OR ACC.6
64
 OR ACC.7
65
 OR ACC.8
66
 OR ACC.9
67
 OR ACC.10
68
 OR ACC.11
69
 OR ACC.12
70
 OR ACC.13
71
 OR ACC.14
72
 OR  ACC.15
73
 XOR ACC.0       ;XOR with carry
74
 XOR ACC.1
75
 XOR ACC.2
76
 XOR ACC.3
77
 XOR ACC.4
78
 XOR ACC.5
79
 XOR ACC.6
80
 XOR ACC.7
81
 XOR ACC.8
82
 XOR ACC.9
83
 XOR ACC.10
84
 XOR ACC.11
85
 XOR ACC.12
86
 XOR ACC.13
87
 XOR ACC.14     ;Error condition when ACC.n and n>15
88
 XOR ACC.15
89
 MOVE C, SC.1
90
 MOVE C, IMR.0
91
 MOVE C, IC.0
92
 MOVE C, PSF.0           ;move program status flag bit 0

powered by: WebSVN 2.1.0

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