Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ffreestanding -target-feature +adx -emit-llvm -o - %s | FileCheck %s
      2 
      3 #include <x86intrin.h>
      4 
      5 unsigned char test_addcarryx_u32(unsigned char __cf, unsigned int __x,
      6                                  unsigned int __y, unsigned int *__p) {
      7 // CHECK-LABEL: test_addcarryx_u32
      8 // CHECK: call i8 @llvm.x86.addcarryx.u32
      9   return _addcarryx_u32(__cf, __x, __y, __p);
     10 }
     11 
     12 unsigned char test_addcarryx_u64(unsigned char __cf, unsigned long long __x,
     13                                  unsigned long long __y,
     14                                  unsigned long long *__p) {
     15 // CHECK-LABEL: test_addcarryx_u64
     16 // CHECK: call i8 @llvm.x86.addcarryx.u64
     17   return _addcarryx_u64(__cf, __x, __y, __p);
     18 }
     19