You could force the illusion of use of the value by storing the read value into a local variable and then passing that value to inline assembly that did nothing at all, similar to the implementation of mem_barrier.