How to verify if two bits of a 32 bit register are swapped?

In reply to dave_59:

No dave, its like you get the same value but when you access 1st bit it will come from 2nd bit and vice versa.