summaryrefslogtreecommitdiffstats
path: root/src/isa-l/crc/aarch64/crc64_iso_refl_pmull.h
blob: 8ee4f58b1d260304d0ba480d59b8729f5079c5d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
########################################################################
#  Copyright(c) 2019 Arm Corporation All rights reserved.
#
#  Redistribution and use in source and binary forms, with or without
#  modification, are permitted provided that the following conditions
#  are met:
#    * Redistributions of source code must retain the above copyright
#      notice, this list of conditions and the following disclaimer.
#    * Redistributions in binary form must reproduce the above copyright
#      notice, this list of conditions and the following disclaimer in
#      the documentation and/or other materials provided with the
#      distribution.
#    * Neither the name of Arm Corporation nor the names of its
#      contributors may be used to endorse or promote products derived
#      from this software without specific prior written permission.
#
#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
#  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
#  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
#  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
#  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#########################################################################

.equ	p4_low_b0, 0x0001
.equ	p4_low_b1, 0xb000
.equ	p4_low_b2, 0x01b1
.equ	p4_low_b3, 0x01b0
.equ	p4_high_b0, 0x0001
.equ	p4_high_b1, 0x0000
.equ	p4_high_b2, 0x0101
.equ	p4_high_b3, 0xb100

.equ	p1_low_b0, 0x0001
.equ	p1_low_b1, 0x0000
.equ	p1_low_b2, 0x0000
.equ	p1_low_b3, 0x6b70
.equ	p1_high_b0, 0x0001
.equ	p1_high_b1, 0x0000
.equ	p1_high_b2, 0x0000
.equ	p1_high_b3, 0xf500

.equ	p0_low_b0, 0x0001
.equ	p0_low_b1, 0x0000
.equ	p0_low_b2, 0x0000
.equ	p0_low_b3, 0xf500

.equ	br_low_b0, 0x0001
.equ	br_low_b1, 0x0000
.equ	br_low_b2, 0x0000
.equ	br_low_b3, 0xb000
.equ	br_high_b0, 0x0001
.equ	br_high_b1, 0x0000
.equ	br_high_b2, 0x0000
.equ	br_high_b3, 0xb000

	.text
	.section	.rodata
	.align	4
	.set	.lanchor_crc_tab,. + 0
	.type	crc64_tab, %object
	.size	crc64_tab, 2048

crc64_tab:
	.xword 0x0000000000000000, 0x01b0000000000000
	.xword 0x0360000000000000, 0x02d0000000000000
	.xword 0x06c0000000000000, 0x0770000000000000
	.xword 0x05a0000000000000, 0x0410000000000000
	.xword 0x0d80000000000000, 0x0c30000000000000
	.xword 0x0ee0000000000000, 0x0f50000000000000
	.xword 0x0b40000000000000, 0x0af0000000000000
	.xword 0x0820000000000000, 0x0990000000000000
	.xword 0x1b00000000000000, 0x1ab0000000000000
	.xword 0x1860000000000000, 0x19d0000000000000
	.xword 0x1dc0000000000000, 0x1c70000000000000
	.xword 0x1ea0000000000000, 0x1f10000000000000
	.xword 0x1680000000000000, 0x1730000000000000
	.xword 0x15e0000000000000, 0x1450000000000000
	.xword 0x1040000000000000, 0x11f0000000000000
	.xword 0x1320000000000000, 0x1290000000000000
	.xword 0x3600000000000000, 0x37b0000000000000
	.xword 0x3560000000000000, 0x34d0000000000000
	.xword 0x30c0000000000000, 0x3170000000000000
	.xword 0x33a0000000000000, 0x3210000000000000
	.xword 0x3b80000000000000, 0x3a30000000000000
	.xword 0x38e0000000000000, 0x3950000000000000
	.xword 0x3d40000000000000, 0x3cf0000000000000
	.xword 0x3e20000000000000, 0x3f90000000000000
	.xword 0x2d00000000000000, 0x2cb0000000000000
	.xword 0x2e60000000000000, 0x2fd0000000000000
	.xword 0x2bc0000000000000, 0x2a70000000000000
	.xword 0x28a0000000000000, 0x2910000000000000
	.xword 0x2080000000000000, 0x2130000000000000
	.xword 0x23e0000000000000, 0x2250000000000000
	.xword 0x2640000000000000, 0x27f0000000000000
	.xword 0x2520000000000000, 0x2490000000000000
	.xword 0x6c00000000000000, 0x6db0000000000000
	.xword 0x6f60000000000000, 0x6ed0000000000000
	.xword 0x6ac0000000000000, 0x6b70000000000000
	.xword 0x69a0000000000000, 0x6810000000000000
	.xword 0x6180000000000000, 0x6030000000000000
	.xword 0x62e0000000000000, 0x6350000000000000
	.xword 0x6740000000000000, 0x66f0000000000000
	.xword 0x6420000000000000, 0x6590000000000000
	.xword 0x7700000000000000, 0x76b0000000000000
	.xword 0x7460000000000000, 0x75d0000000000000
	.xword 0x71c0000000000000, 0x7070000000000000
	.xword 0x72a0000000000000, 0x7310000000000000
	.xword 0x7a80000000000000, 0x7b30000000000000
	.xword 0x79e0000000000000, 0x7850000000000000
	.xword 0x7c40000000000000, 0x7df0000000000000
	.xword 0x7f20000000000000, 0x7e90000000000000
	.xword 0x5a00000000000000, 0x5bb0000000000000
	.xword 0x5960000000000000, 0x58d0000000000000
	.xword 0x5cc0000000000000, 0x5d70000000000000
	.xword 0x5fa0000000000000, 0x5e10000000000000
	.xword 0x5780000000000000, 0x5630000000000000
	.xword 0x54e0000000000000, 0x5550000000000000
	.xword 0x5140000000000000, 0x50f0000000000000
	.xword 0x5220000000000000, 0x5390000000000000
	.xword 0x4100000000000000, 0x40b0000000000000
	.xword 0x4260000000000000, 0x43d0000000000000
	.xword 0x47c0000000000000, 0x4670000000000000
	.xword 0x44a0000000000000, 0x4510000000000000
	.xword 0x4c80000000000000, 0x4d30000000000000
	.xword 0x4fe0000000000000, 0x4e50000000000000
	.xword 0x4a40000000000000, 0x4bf0000000000000
	.xword 0x4920000000000000, 0x4890000000000000
	.xword 0xd800000000000000, 0xd9b0000000000000
	.xword 0xdb60000000000000, 0xdad0000000000000
	.xword 0xdec0000000000000, 0xdf70000000000000
	.xword 0xdda0000000000000, 0xdc10000000000000
	.xword 0xd580000000000000, 0xd430000000000000
	.xword 0xd6e0000000000000, 0xd750000000000000
	.xword 0xd340000000000000, 0xd2f0000000000000
	.xword 0xd020000000000000, 0xd190000000000000
	.xword 0xc300000000000000, 0xc2b0000000000000
	.xword 0xc060000000000000, 0xc1d0000000000000
	.xword 0xc5c0000000000000, 0xc470000000000000
	.xword 0xc6a0000000000000, 0xc710000000000000
	.xword 0xce80000000000000, 0xcf30000000000000
	.xword 0xcde0000000000000, 0xcc50000000000000
	.xword 0xc840000000000000, 0xc9f0000000000000
	.xword 0xcb20000000000000, 0xca90000000000000
	.xword 0xee00000000000000, 0xefb0000000000000
	.xword 0xed60000000000000, 0xecd0000000000000
	.xword 0xe8c0000000000000, 0xe970000000000000
	.xword 0xeba0000000000000, 0xea10000000000000
	.xword 0xe380000000000000, 0xe230000000000000
	.xword 0xe0e0000000000000, 0xe150000000000000
	.xword 0xe540000000000000, 0xe4f0000000000000
	.xword 0xe620000000000000, 0xe790000000000000
	.xword 0xf500000000000000, 0xf4b0000000000000
	.xword 0xf660000000000000, 0xf7d0000000000000
	.xword 0xf3c0000000000000, 0xf270000000000000
	.xword 0xf0a0000000000000, 0xf110000000000000
	.xword 0xf880000000000000, 0xf930000000000000
	.xword 0xfbe0000000000000, 0xfa50000000000000
	.xword 0xfe40000000000000, 0xfff0000000000000
	.xword 0xfd20000000000000, 0xfc90000000000000
	.xword 0xb400000000000000, 0xb5b0000000000000
	.xword 0xb760000000000000, 0xb6d0000000000000
	.xword 0xb2c0000000000000, 0xb370000000000000
	.xword 0xb1a0000000000000, 0xb010000000000000
	.xword 0xb980000000000000, 0xb830000000000000
	.xword 0xbae0000000000000, 0xbb50000000000000
	.xword 0xbf40000000000000, 0xbef0000000000000
	.xword 0xbc20000000000000, 0xbd90000000000000
	.xword 0xaf00000000000000, 0xaeb0000000000000
	.xword 0xac60000000000000, 0xadd0000000000000
	.xword 0xa9c0000000000000, 0xa870000000000000
	.xword 0xaaa0000000000000, 0xab10000000000000
	.xword 0xa280000000000000, 0xa330000000000000
	.xword 0xa1e0000000000000, 0xa050000000000000
	.xword 0xa440000000000000, 0xa5f0000000000000
	.xword 0xa720000000000000, 0xa690000000000000
	.xword 0x8200000000000000, 0x83b0000000000000
	.xword 0x8160000000000000, 0x80d0000000000000
	.xword 0x84c0000000000000, 0x8570000000000000
	.xword 0x87a0000000000000, 0x8610000000000000
	.xword 0x8f80000000000000, 0x8e30000000000000
	.xword 0x8ce0000000000000, 0x8d50000000000000
	.xword 0x8940000000000000, 0x88f0000000000000
	.xword 0x8a20000000000000, 0x8b90000000000000
	.xword 0x9900000000000000, 0x98b0000000000000
	.xword 0x9a60000000000000, 0x9bd0000000000000
	.xword 0x9fc0000000000000, 0x9e70000000000000
	.xword 0x9ca0000000000000, 0x9d10000000000000
	.xword 0x9480000000000000, 0x9530000000000000
	.xword 0x97e0000000000000, 0x9650000000000000
	.xword 0x9240000000000000, 0x93f0000000000000
	.xword 0x9120000000000000, 0x9090000000000000