Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Forked from anonymous/foo.ll
Created January 15, 2014 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcrichton/8446968 to your computer and use it in GitHub Desktop.
Save alexcrichton/8446968 to your computer and use it in GitHub Desktop.
@glob = internal global i64 4
define void @main() {
atomicrmw volatile xchg i64* @glob, i64 5 seq_cst
ret void
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment