llvm-capstone/clang/test/CodeGen/pr3997.c
Nirav Dave 8497ef4086 [X86] Add NumRegisterParameters Module Flag.
Reviewers: rnk, mkuper

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27051

llvm-svn: 298177
2017-03-18 00:43:39 +00:00

14 lines
406 B
C

// RUN: %clang_cc1 %s -triple i386-unknown-linux-gnu -mregparm 3 -emit-llvm -o - | FileCheck %s
void *memcpy(void *dest, const void *src, unsigned int n);
void use_builtin_memcpy(void *dest, const void *src, unsigned int n) {
__builtin_memcpy(dest, src, n);
}
void use_memcpy(void *dest, const void *src, unsigned int n) {
memcpy(dest, src, n);
}
//CHECK: !{i32 1, !"NumRegisterParameters", i32 3}