TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-78
CRC32
CRC32
Description
Calculate the CRC of register D[a] and the inverse of register D[b] and put the result in register D[c].
The CRC polynomial used is the CRC-32 polynomial as defined in the IEEE 802.3 standard. The initial value of
D[b] should be zero
CRC32D[c], D[b], D[a] (RR)
D[c] = crc32(D[b, D[a]);
Status Flags
Examples
;; Calculate CRC for string "12345678"
mov.u d1, #0x3334
addih d1, d1, #0x3132
mov.u d2, #0x3738
addih d2, d2, #0x3536
mov d0, #0x0
crc32 d0,d0,d1;
crc32 d0,d0,d2;
See Also
PARITY
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
31
c
28 27
03
H
20 19
-
18 17
0
H
16 15
b
12 11
a
8 7
4B
H
0