]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2006-01-16-BitCountIntrinsicsUnsigned.c
Vendor import of clang release_38 branch r258549:
[FreeBSD/FreeBSD.git] / test / CodeGen / 2006-01-16-BitCountIntrinsicsUnsigned.c
1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3 unsigned t2(unsigned X) {
4   // CHECK: t2
5   // CHECK: llvm.ctlz.i32
6   return __builtin_clz(X);
7 }
8 int t1(int X) {
9   // CHECK: t1
10   // CHECK: llvm.ctlz.i32
11   return __builtin_clz(X);
12 }