summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-x86-disabled.c
diff options
context:
space:
mode:
authorAlbert Gutowski <agutowski@google.com>2016-10-12 17:28:44 +0000
committerAlbert Gutowski <agutowski@google.com>2016-10-12 17:28:44 +0000
commit0fd6e9608e3730f2d99255786af22e46d975af9b (patch)
tree98f93373d89e4e5a23181d726c2bc99b24f07c92 /clang/test/CodeGen/builtins-x86-disabled.c
parent025e8614ab849983034e5abb3c0afbfa4e1faff1 (diff)
downloadbcm5719-llvm-0fd6e9608e3730f2d99255786af22e46d975af9b.tar.gz
bcm5719-llvm-0fd6e9608e3730f2d99255786af22e46d975af9b.zip
Move x86-64 builtins from SemaChecking.cpp to BuiltinsX86_64.def
Summary: Follow-up to https://reviews.llvm.org/D24598 (separating builtins for x84-64 and i386). Reviewers: hans, thakis, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25494 llvm-svn: 284026
Diffstat (limited to 'clang/test/CodeGen/builtins-x86-disabled.c')
-rw-r--r--clang/test/CodeGen/builtins-x86-disabled.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/clang/test/CodeGen/builtins-x86-disabled.c b/clang/test/CodeGen/builtins-x86-disabled.c
deleted file mode 100644
index a024336e8ab..00000000000
--- a/clang/test/CodeGen/builtins-x86-disabled.c
+++ /dev/null
@@ -1,22 +0,0 @@
-// REQUIRES: x86-registered-target
-// RUN: not %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o - 2>&1 | FileCheck %s
-
-void call_x86_64_builtins(void)
-{
- unsigned long long a = __builtin_ia32_crc32di(0, 0);
- unsigned long long b;
- unsigned int c = __builtin_ia32_rdseed64_step (&b);
- unsigned long long d = __builtin_ia32_bextr_u64 (0, 0);
- unsigned long long e = __builtin_ia32_pdep_di(0, 0);
- unsigned long long f = __builtin_ia32_pext_di(0, 0);
- unsigned long long g = __builtin_ia32_bzhi_di(0, 0);
- unsigned long long h;
- unsigned long long i = __builtin_ia32_addcarryx_u64(0, 0, 0, &h);
- unsigned long long j;
- unsigned long long k = __builtin_ia32_addcarry_u64(0, 0, 0, &j);
- unsigned long long l;
- unsigned long long m = __builtin_ia32_subborrow_u64(0, 0, 0, &l);
-}
-
-// CHECK: error: this builtin is only available on x86-64 targets
-// CHECK: __builtin_ia32_crc32di
OpenPOWER on IntegriCloud