blob: 5f761ddb858f29d3ef81ef3c6c7e4bc3e282fb3d [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
Dan Gohmanc6e59b72010-07-19 22:48:56 +00008define void @test_fetch_and_op() nounwind {
9entry:
Eli Friedman184944a2011-09-26 23:15:09 +000010 %tmp40 = atomicrmw and i8* @sc, i8 11 monotonic
Dan Gohmanc6e59b72010-07-19 22:48:56 +000011 store i8 %tmp40, i8* @sc
Eli Friedman184944a2011-09-26 23:15:09 +000012 %tmp41 = atomicrmw and i8* @uc, i8 11 monotonic
Dan Gohmanc6e59b72010-07-19 22:48:56 +000013 store i8 %tmp41, i8* @uc
14 ret void
15}