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

In reply to jaswanth_b:

Do you mean if you write the value 32’h8000_0000, when you read it back you get 32=h4000_0000?