mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
c6e59b71f5
update the current basic block in addition to the current insert position, so that they remain consistent. This fixes rdar://8204072. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108765 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
455 B
LLVM
17 lines
455 B
LLVM
; RUN: llc < %s -O0 -march=x86-64
|
|
; rdar://8204072
|
|
|
|
@sc = external global i8
|
|
@uc = external global i8
|
|
|
|
declare i8 @llvm.atomic.load.and.i8.p0i8(i8* nocapture, i8) nounwind
|
|
|
|
define void @test_fetch_and_op() nounwind {
|
|
entry:
|
|
%tmp40 = call i8 @llvm.atomic.load.and.i8.p0i8(i8* @sc, i8 11) ; <i8> [#uses=1]
|
|
store i8 %tmp40, i8* @sc
|
|
%tmp41 = call i8 @llvm.atomic.load.and.i8.p0i8(i8* @uc, i8 11) ; <i8> [#uses=1]
|
|
store i8 %tmp41, i8* @uc
|
|
ret void
|
|
}
|