blob: 5f761ddb858f29d3ef81ef3c6c7e4bc3e282fb3d [file] [log] [blame]
Dan Gohmanb5e918d2010-07-19 22:48:56 +00001; RUN: llc < %s -O0 -march=x86-64
2; rdar://8204072
Duncan Sands2e839de2010-07-20 15:52:32 +00003; PR7652
Dan Gohmanb5e918d2010-07-19 22:48:56 +00004
5@sc = external global i8
6@uc = external global i8
7
Dan Gohmanb5e918d2010-07-19 22:48:56 +00008define void @test_fetch_and_op() nounwind {
9entry:
Eli Friedmana486cb92011-09-26 23:15:09 +000010 %tmp40 = atomicrmw and i8* @sc, i8 11 monotonic
Dan Gohmanb5e918d2010-07-19 22:48:56 +000011 store i8 %tmp40, i8* @sc
Eli Friedmana486cb92011-09-26 23:15:09 +000012 %tmp41 = atomicrmw and i8* @uc, i8 11 monotonic
Dan Gohmanb5e918d2010-07-19 22:48:56 +000013 store i8 %tmp41, i8* @uc
14 ret void
15}