2010-07-20 06:48:56 +08:00
|
|
|
; RUN: llc < %s -O0 -march=x86-64
|
|
|
|
; rdar://8204072
|
2010-07-20 23:52:32 +08:00
|
|
|
; PR7652
|
2010-07-20 06:48:56 +08:00
|
|
|
|
|
|
|
@sc = external global i8
|
|
|
|
@uc = external global i8
|
|
|
|
|
|
|
|
define void @test_fetch_and_op() nounwind {
|
|
|
|
entry:
|
2011-09-27 07:15:09 +08:00
|
|
|
%tmp40 = atomicrmw and i8* @sc, i8 11 monotonic
|
2010-07-20 06:48:56 +08:00
|
|
|
store i8 %tmp40, i8* @sc
|
2011-09-27 07:15:09 +08:00
|
|
|
%tmp41 = atomicrmw and i8* @uc, i8 11 monotonic
|
2010-07-20 06:48:56 +08:00
|
|
|
store i8 %tmp41, i8* @uc
|
|
|
|
ret void
|
|
|
|
}
|