diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-12-10 06:07:59 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-12-10 06:07:59 +0000 |
| commit | 6d7a7ef9ebafdf8a9f71508f4a5c9ecf31266df6 (patch) | |
| tree | b20534d566d31c98cc17b28bea348bdd7c763538 /clang/test/CodeGen/adx-builtins.c | |
| parent | 02b614abc89f2270eb391c8c56247b5271bf10b7 (diff) | |
| download | bcm5719-llvm-6d7a7ef9ebafdf8a9f71508f4a5c9ecf31266df6.tar.gz bcm5719-llvm-6d7a7ef9ebafdf8a9f71508f4a5c9ecf31266df6.zip | |
[X86] Remove the addcarry builtins. Leaving only the addcarryx builtins since that matches gcc.
The addcarry and addcarryx builtins do the same thing. The only difference is that addcarryx previously required adx feature.
This commit removes the adx feature check from addcarryx and removes the addcarry builtin. This matches the builtins that gcc has. We don't guarantee compatibility in builtins, but we generally try to be consistent if its not a burden.
llvm-svn: 348738
Diffstat (limited to 'clang/test/CodeGen/adx-builtins.c')
| -rw-r--r-- | clang/test/CodeGen/adx-builtins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/adx-builtins.c b/clang/test/CodeGen/adx-builtins.c index 8fd95c005b9..4047bbab069 100644 --- a/clang/test/CodeGen/adx-builtins.c +++ b/clang/test/CodeGen/adx-builtins.c @@ -5,7 +5,7 @@ unsigned char test_addcarryx_u32(unsigned char __cf, unsigned int __x, unsigned int __y, unsigned int *__p) { // CHECK-LABEL: test_addcarryx_u32 -// CHECK: [[ADC:%.*]] = call { i8, i32 } @llvm.x86.addcarryx.u32 +// CHECK: [[ADC:%.*]] = call { i8, i32 } @llvm.x86.addcarry.32 // CHECK: [[DATA:%.*]] = extractvalue { i8, i32 } [[ADC]], 1 // CHECK: store i32 [[DATA]], i32* %{{.*}} // CHECK: [[CF:%.*]] = extractvalue { i8, i32 } [[ADC]], 0 @@ -16,7 +16,7 @@ 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: [[ADC:%.*]] = call { i8, i64 } @llvm.x86.addcarryx.u64 +// CHECK: [[ADC:%.*]] = call { i8, i64 } @llvm.x86.addcarry.64 // CHECK: [[DATA:%.*]] = extractvalue { i8, i64 } [[ADC]], 1 // CHECK: store i64 [[DATA]], i64* %{{.*}} // CHECK: [[CF:%.*]] = extractvalue { i8, i64 } [[ADC]], 0 |

