| Bill Wendling | d9de62f | 2008-09-16 06:40:04 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 3 |
| 2 | // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | grep declare | count 1 | ||||
| Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | |
| 4 | unsigned t2(unsigned X) { | ||||
| 5 | return __builtin_clz(X); | ||||
| 6 | } | ||||
| 7 | int t1(int X) { | ||||
| 8 | return __builtin_clz(X); | ||||
| 9 | } | ||||