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