brintos

brintos / llvm-project-archived public Read only

0
0
Text · 635 B · b2c3e75 Raw
15 lines · plain
1; RUN: llc < %s -mtriple=i386-apple-darwin10 | FileCheck -check-prefixes=CHECK,BZERO %s2; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck -check-prefixes=CHECK,BZERO %s3; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck -check-prefixes=CHECK,NOBZERO %s4; RUN: llc < %s -mtriple=x86_64-apple-ios10.0-simulator | FileCheck -check-prefixes=CHECK,NOBZERO %s5 6declare void @llvm.memset.p0.i32(ptr nocapture, i8, i32, i1) nounwind7 8; CHECK-LABEL: foo:9; BZERO: {{calll|callq}} ___bzero10; NOBZERO-NOT: bzero11define void @foo(ptr %p, i32 %len) {12  call void @llvm.memset.p0.i32(ptr %p, i8 0, i32 %len, i1 false)13  ret void14}15