diff options
-rw-r--r-- | test/CFrontend/2007-08-22-CTTZ.c | 6 |
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 0000000..8687a73 --- /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); +} |