3 ; RUN: llvm-as -o %t.obj %s
4 ; RUN: llvm-as -o %t2.obj %S/Inputs/libcall-archive.ll
5 ; RUN: llvm-mc -filetype=obj -triple=i686-unknown-windows -o %t3.obj %S/Inputs/libcall-archive.s
6 ; RUN: llvm-ar rcs %t.a %t2.obj %t3.obj
7 ; RUN: lld-link -out:%t.exe -subsystem:console -entry:start -safeseh:no -lldmap:- %t.obj %t.a | FileCheck %s
9 ; CHECK-NOT: ___sync_val_compare_and_swap_8
13 target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
14 target triple = "i686-unknown-windows"
16 define void @start(i8* %a, i8* %b) {
18 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %a, i8* %b, i64 1024, i1 false)
22 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i1)