mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
39db5e1ed8
Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
13 lines
480 B
C
13 lines
480 B
C
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm < %s| FileCheck %s
|
|
|
|
typedef __SIZE_TYPE__ size_t;
|
|
|
|
void *mempcpy(void *, void const *, size_t);
|
|
|
|
char *test(char *d, char *s, size_t n) {
|
|
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr {{.*}} %[[REG1:[^ ]+]], ptr {{.*}} %1, i64 %[[REG2:[^ ]+]], i1 false)
|
|
// CHECK-NEXT: %[[REGr:[^ ]+]] = getelementptr inbounds i8, ptr %[[REG1]], i64 %[[REG2]]
|
|
// CHECK-NEXT: ret ptr %[[REGr]]
|
|
return mempcpy(d, s, n);
|
|
}
|