aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-08-22 07:26:30 +0000
committerBill Wendling <isanbard@gmail.com>2007-08-22 07:26:30 +0000
commit9f30e22930aff7acab912bfe6be3d18a855776f9 (patch)
tree24574b40e72c318c4d522ea5d6dbd36976672f41
parent35a5cfeeb9f3a4f2cd5e16e51591bf7a7089b104 (diff)
Testcase for llvm.c* intrinsic failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41268 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2007-08-22-CTTZ.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2007-08-22-CTTZ.c b/test/CFrontend/2007-08-22-CTTZ.c
new file mode 100644
index 0000000000..8687a73066
--- /dev/null
+++ b/test/CFrontend/2007-08-22-CTTZ.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep {llvm.cttz.i64} | count 1
+// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | not grep {lshr}
+
+int bork(unsigned long long x) {
+ return __builtin_ctzll(x);
+}