D4796 taught LLVM to fold some atomic integer operations into a single
instruction. The pattern was unaware that the instructions clobbered
flags.
This patch adds the missing EFLAGS definition.
Floating point operations don't set flags, the fadd optimization a few
lines below is therefore correct. The same applies for surrounding
load/store optimizations.