Duncan Sands | 8c55661 | 2007-08-23 17:22:50 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -O2 -S -o - %s | grep {llvm.cttz.i64} | count 2 |
2 | // RUN: %llvmgcc -O2 -S -o - %s | not grep {lshr} | ||||
Bill Wendling | 4f78731 | 2007-08-22 07:26:30 +0000 | [diff] [blame] | 3 | |
4 | int bork(unsigned long long x) { | ||||
5 | return __builtin_ctzll(x); | ||||
6 | } |