The attached file contains some simple functions that manipulate volatile
varibles. The functions near the top of the file should turn into code
that loads from x and then stores to it. The LLVM version on the web (not
sure if it's the latest...) gets most of these wrong.
This appears to work with mainline llvm. The web page is from LLVM 2.0. When LLVM 2.1 is released we'll update it. For reference, here is the output of mainline, please let me know if you see any problems:
This appears to work with mainline llvm. The web page is from LLVM 2.0. When
LLVM 2.1 is released we'll update it. For reference, here is the output of
mainline, please let me know if you see any problems: