forked from OSchip/llvm-project
parent
385a451844
commit
bffa4a2b17
|
@ -4,14 +4,14 @@ struct x { int a[100]; };
|
||||||
|
|
||||||
void foo(struct x *P, struct x *Q) {
|
void foo(struct x *P, struct x *Q) {
|
||||||
// CHECK-LABEL: @foo(
|
// CHECK-LABEL: @foo(
|
||||||
// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64
|
// CHECK: call void @llvm.memcpy.p0i8.p0i8
|
||||||
*P = *Q;
|
*P = *Q;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK: declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i64, i1 immarg)
|
// CHECK: declare void @llvm.memcpy.p0i8.p0i8{{.*}}(i8* noalias nocapture writeonly, i8* noalias nocapture readonly
|
||||||
|
|
||||||
void bar(struct x *P, struct x *Q) {
|
void bar(struct x *P, struct x *Q) {
|
||||||
// CHECK-LABEL: @bar(
|
// CHECK-LABEL: @bar(
|
||||||
// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64
|
// CHECK: call void @llvm.memcpy.p0i8.p0i8
|
||||||
__builtin_memcpy(P, Q, sizeof(struct x));
|
__builtin_memcpy(P, Q, sizeof(struct x));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue