Fix for issue #7687, by using bitcast instead of volatile store/load to remove extra bits.