1; REQUIRES: x86 2; RUN: rm -f %t.a 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 8 9; CHECK-NOT: ___sync_val_compare_and_swap_8 10; CHECK: _start 11; CHECK: _memcpy 12 13target 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" 14target triple = "i686-unknown-windows" 15 16define void @start(ptr %a, ptr %b) { 17entry: 18 call void @llvm.memcpy.p0.p0.i64(ptr %a, ptr %b, i64 1024, i1 false) 19 ret void 20} 21 22declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) 23