
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
16 lines
334 B
LLVM
16 lines
334 B
LLVM
; RUN: llc < %s -O0 -mtriple=x86_64--
|
|
; rdar://8204072
|
|
; PR7652
|
|
|
|
@sc = external global i8
|
|
@uc = external global i8
|
|
|
|
define void @test_fetch_and_op() nounwind {
|
|
entry:
|
|
%tmp40 = atomicrmw and ptr @sc, i8 11 monotonic
|
|
store i8 %tmp40, ptr @sc
|
|
%tmp41 = atomicrmw and ptr @uc, i8 11 monotonic
|
|
store i8 %tmp41, ptr @uc
|
|
ret void
|
|
}
|