mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
184944acdf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140582 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
330 B
LLVM
16 lines
330 B
LLVM
; RUN: llc < %s -O0 -march=x86-64
|
|
; rdar://8204072
|
|
; PR7652
|
|
|
|
@sc = external global i8
|
|
@uc = external global i8
|
|
|
|
define void @test_fetch_and_op() nounwind {
|
|
entry:
|
|
%tmp40 = atomicrmw and i8* @sc, i8 11 monotonic
|
|
store i8 %tmp40, i8* @sc
|
|
%tmp41 = atomicrmw and i8* @uc, i8 11 monotonic
|
|
store i8 %tmp41, i8* @uc
|
|
ret void
|
|
}
|