forked from OSchip/llvm-project
[x86] Fixed argument types in intrinsics:
_addcarryx_u64 _addcarry_u64 _subborrow_u64 Thanks Pasi Parviainen for notice. llvm-svn: 218376
This commit is contained in:
parent
d120916ca7
commit
ea13042cf2
|
@ -39,8 +39,8 @@ _addcarryx_u32(unsigned char __cf, unsigned int __x, unsigned int __y,
|
|||
|
||||
#ifdef __x86_64__
|
||||
static __inline unsigned char __attribute__((__always_inline__, __nodebug__))
|
||||
_addcarryx_u64(unsigned char __cf, unsigned long __x, unsigned long __y,
|
||||
unsigned long long *__p)
|
||||
_addcarryx_u64(unsigned char __cf, unsigned long long __x,
|
||||
unsigned long long __y, unsigned long long *__p)
|
||||
{
|
||||
return __builtin_ia32_addcarryx_u64(__cf, __x, __y, __p);
|
||||
}
|
||||
|
@ -57,8 +57,8 @@ _addcarry_u32(unsigned char __cf, unsigned int __x, unsigned int __y,
|
|||
|
||||
#ifdef __x86_64__
|
||||
static __inline unsigned char __attribute__((__always_inline__, __nodebug__))
|
||||
_addcarry_u64(unsigned char __cf, unsigned long __x, unsigned long __y,
|
||||
unsigned long long *__p)
|
||||
_addcarry_u64(unsigned char __cf, unsigned long long __x,
|
||||
unsigned long long __y, unsigned long long *__p)
|
||||
{
|
||||
return __builtin_ia32_addcarry_u64(__cf, __x, __y, __p);
|
||||
}
|
||||
|
@ -73,8 +73,8 @@ _subborrow_u32(unsigned char __cf, unsigned int __x, unsigned int __y,
|
|||
|
||||
#ifdef __x86_64__
|
||||
static __inline unsigned char __attribute__((__always_inline__, __nodebug__))
|
||||
_subborrow_u64(unsigned char __cf, unsigned long __x, unsigned long __y,
|
||||
unsigned long long *__p)
|
||||
_subborrow_u64(unsigned char __cf, unsigned long long __x,
|
||||
unsigned long long __y, unsigned long long *__p)
|
||||
{
|
||||
return __builtin_ia32_subborrow_u64(__cf, __x, __y, __p);
|
||||
}
|
||||
|
|
|
@ -9,22 +9,24 @@ unsigned char test_addcarry_u32(unsigned char __cf, unsigned int __x,
|
|||
return _addcarry_u32(__cf, __x, __y, __p);
|
||||
}
|
||||
|
||||
unsigned char test_addcarry_u64(unsigned char __cf, unsigned long __x,
|
||||
unsigned long __y, unsigned long long *__p) {
|
||||
unsigned char test_addcarry_u64(unsigned char __cf, unsigned long long __x,
|
||||
unsigned long long __y,
|
||||
unsigned long long *__p) {
|
||||
// CHECK-LABEL: test_addcarry_u64
|
||||
// CHECK: call i8 @llvm.x86.addcarry.u64
|
||||
return _addcarry_u64(__cf, __x, __y, __p);
|
||||
}
|
||||
|
||||
unsigned char test_subborrow_u32(unsigned char __cf, unsigned int __x,
|
||||
unsigned int __y, unsigned int *__p) {
|
||||
unsigned int __y, unsigned int *__p) {
|
||||
// CHECK-LABEL: test_subborrow_u32
|
||||
// CHECK: call i8 @llvm.x86.subborrow.u32
|
||||
return _subborrow_u32(__cf, __x, __y, __p);
|
||||
}
|
||||
|
||||
unsigned char test_subborrow_u64(unsigned char __cf, unsigned long __x,
|
||||
unsigned long __y, unsigned long long *__p) {
|
||||
unsigned char test_subborrow_u64(unsigned char __cf, unsigned long long __x,
|
||||
unsigned long long __y,
|
||||
unsigned long long *__p) {
|
||||
// CHECK-LABEL: test_subborrow_u64
|
||||
// CHECK: call i8 @llvm.x86.subborrow.u64
|
||||
return _subborrow_u64(__cf, __x, __y, __p);
|
||||
|
|
|
@ -9,8 +9,9 @@ unsigned char test_addcarryx_u32(unsigned char __cf, unsigned int __x,
|
|||
return _addcarryx_u32(__cf, __x, __y, __p);
|
||||
}
|
||||
|
||||
unsigned char test_addcarryx_u64(unsigned char __cf, unsigned long __x,
|
||||
unsigned long __y, unsigned long long *__p) {
|
||||
unsigned char test_addcarryx_u64(unsigned char __cf, unsigned long long __x,
|
||||
unsigned long long __y,
|
||||
unsigned long long *__p) {
|
||||
// CHECK-LABEL: test_addcarryx_u64
|
||||
// CHECK: call i8 @llvm.x86.addcarryx.u64
|
||||
return _addcarryx_u64(__cf, __x, __y, __p);
|
||||
|
|
Loading…
Reference in New Issue