16 lines · plain
1; RUN: llc < %s -O0 -mtriple=x86_64--2; rdar://82040723; PR76524 5@sc = external global i86@uc = external global i87 8define void @test_fetch_and_op() nounwind {9entry:10 %tmp40 = atomicrmw and ptr @sc, i8 11 monotonic11 store i8 %tmp40, ptr @sc12 %tmp41 = atomicrmw and ptr @uc, i8 11 monotonic13 store i8 %tmp41, ptr @uc14 ret void15}16