GPIO_O_DATA register is virtually mapped to 256 locations in the address space. To facilitate the reading and writing of data to these registers by independent drivers, the data read from and written to the registers are masked by the eight address lines [9:2]. The following operation is wrong.
HWREGBITW(GPIO_PORTD_BASE + GPIO_O_DATA, 3) = 0;