1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
2 
3 #define __MM_MALLOC_H
4 
5 #include <x86intrin.h>
6 
test_addcarry_u32(unsigned char __cf,unsigned int __x,unsigned int __y,unsigned int * __p)7 unsigned char test_addcarry_u32(unsigned char __cf, unsigned int __x,
8                                 unsigned int __y, unsigned int *__p) {
9 // CHECK-LABEL: test_addcarry_u32
10 // CHECK: call i8 @llvm.x86.addcarry.u32
11   return _addcarry_u32(__cf, __x, __y, __p);
12 }
13 
test_addcarry_u64(unsigned char __cf,unsigned long long __x,unsigned long long __y,unsigned long long * __p)14 unsigned char test_addcarry_u64(unsigned char __cf, unsigned long long __x,
15                                 unsigned long long __y,
16                                 unsigned long long *__p) {
17 // CHECK-LABEL: test_addcarry_u64
18 // CHECK: call i8 @llvm.x86.addcarry.u64
19   return _addcarry_u64(__cf, __x, __y, __p);
20 }
21 
test_subborrow_u32(unsigned char __cf,unsigned int __x,unsigned int __y,unsigned int * __p)22 unsigned char test_subborrow_u32(unsigned char __cf, unsigned int __x,
23                                  unsigned int __y, unsigned int *__p) {
24 // CHECK-LABEL: test_subborrow_u32
25 // CHECK: call i8 @llvm.x86.subborrow.u32
26   return _subborrow_u32(__cf, __x, __y, __p);
27 }
28 
test_subborrow_u64(unsigned char __cf,unsigned long long __x,unsigned long long __y,unsigned long long * __p)29 unsigned char test_subborrow_u64(unsigned char __cf, unsigned long long __x,
30                                  unsigned long long __y,
31                                  unsigned long long *__p) {
32 // CHECK-LABEL: test_subborrow_u64
33 // CHECK: call i8 @llvm.x86.subborrow.u64
34   return _subborrow_u64(__cf, __x, __y, __p);
35 }
36