Hi Akira, > When I compile and run the following program, is it expected that global > variable gi2 will be incremented twice? It seems that the code generated with > clang and llc increments it only once (line 37-43 of attached file). try marking gi2 volatile. Ciao, Duncan.