Reid Spencer | cc1731c | 2007-04-16 01:31:11 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32( i32} | wc -l | grep 2 |
2 | // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | wc -l | grep 1 | ||||
Chris Lattner | 478cc13 | 2006-01-17 06:24:01 +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 | } |