blob: f8eee9caa6a24d3da03db8858915eabf1410484d [file] [log] [blame]
Dan Gohmanc6e59b72010-07-19 22:48:56 +00001; RUN: llc < %s -O0 -march=x86-64
2; rdar://8204072
3
4@sc = external global i8
5@uc = external global i8
6
7declare i8 @llvm.atomic.load.and.i8.p0i8(i8* nocapture, i8) nounwind
8
9define void @test_fetch_and_op() nounwind {
10entry:
11 %tmp40 = call i8 @llvm.atomic.load.and.i8.p0i8(i8* @sc, i8 11) ; <i8> [#uses=1]
12 store i8 %tmp40, i8* @sc
13 %tmp41 = call i8 @llvm.atomic.load.and.i8.p0i8(i8* @uc, i8 11) ; <i8> [#uses=1]
14 store i8 %tmp41, i8* @uc
15 ret void
16}