aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-08-22-CTTZ.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2007-08-22-CTTZ.c')
-rw-r--r--test/FrontendC/2007-08-22-CTTZ.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendC/2007-08-22-CTTZ.c b/test/FrontendC/2007-08-22-CTTZ.c
new file mode 100644
index 0000000..9e74f24
--- /dev/null
+++ b/test/FrontendC/2007-08-22-CTTZ.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc -O2 -S -o - %s | grep {llvm.cttz.i64} | count 2
+// RUN: %llvmgcc -O2 -S -o - %s | not grep {lshr}
+
+int bork(unsigned long long x) {
+ return __builtin_ctzll(x);
+}