Redundant instruction
This is a redundant instruction. It is replaced by: XOR
The function performs a bit-wise exclusive NOR operation on two 32-bit data items at inputs s1 and s2. The result of the instruction is returned at output d.
Input
32-bit equivalent constant or 32-bit area
32-bit equivalent constant or 32-bit area
Output
32-bit area for storing XNR operation result
Using this instruction you can check how many bits in the two 32-bit data items are the same. At each position in which the bits at inputs s1 and s2 match, a 1 is produced in the result.
The variables s1, s2 and d have to be of the same data type.
s1 |
s2 |
d |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
if the result calculated (output d) is 0.