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