xref: /llvm-project/llvm/test/CodeGen/X86/fast-isel-atomic.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -O0 -mtriple=x86_64--
2; rdar://8204072
3; PR7652
4
5@sc = external global i8
6@uc = external global i8
7
8define void @test_fetch_and_op() nounwind {
9entry:
10  %tmp40 = atomicrmw and ptr @sc, i8 11 monotonic
11  store i8 %tmp40, ptr @sc
12  %tmp41 = atomicrmw and ptr @uc, i8 11 monotonic
13  store i8 %tmp41, ptr @uc
14  ret void
15}
16