From 9f30e22930aff7acab912bfe6be3d18a855776f9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 22 Aug 2007 07:26:30 +0000 Subject: [PATCH] Testcase for llvm.c* intrinsic failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41268 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-08-22-CTTZ.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CFrontend/2007-08-22-CTTZ.c diff --git a/test/CFrontend/2007-08-22-CTTZ.c b/test/CFrontend/2007-08-22-CTTZ.c new file mode 100644 index 00000000000..8687a730666 --- /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); +}