forked from OSchip/llvm-project
parent
20f6f45c5b
commit
82667c7380
|
@ -27,7 +27,7 @@ declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1)
|
|||
|
||||
; Check that tsan converts mem intrinsics back to function calls.
|
||||
|
||||
define void @MemCpyTest(i8* nocapture %x, i8* nocapture %y) {
|
||||
define void @MemCpyTest(i8* nocapture %x, i8* nocapture %y) sanitize_thread {
|
||||
entry:
|
||||
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %x, i8* %y, i64 16, i32 4, i1 false)
|
||||
ret void
|
||||
|
@ -36,7 +36,7 @@ entry:
|
|||
; CHECK: ret void
|
||||
}
|
||||
|
||||
define void @MemMoveTest(i8* nocapture %x, i8* nocapture %y) {
|
||||
define void @MemMoveTest(i8* nocapture %x, i8* nocapture %y) sanitize_thread {
|
||||
entry:
|
||||
tail call void @llvm.memmove.p0i8.p0i8.i64(i8* %x, i8* %y, i64 16, i32 4, i1 false)
|
||||
ret void
|
||||
|
@ -45,7 +45,7 @@ entry:
|
|||
; CHECK: ret void
|
||||
}
|
||||
|
||||
define void @MemSetTest(i8* nocapture %x) {
|
||||
define void @MemSetTest(i8* nocapture %x) sanitize_thread {
|
||||
entry:
|
||||
tail call void @llvm.memset.p0i8.i64(i8* %x, i8 77, i64 16, i32 4, i1 false)
|
||||
ret void
|
||||
|
|
Loading…
Reference in New Issue