1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc t2(unsigned X)3*f4a2713aSLionel Sambucunsigned t2(unsigned X) { 4*f4a2713aSLionel Sambuc // CHECK: t2 5*f4a2713aSLionel Sambuc // CHECK: llvm.ctlz.i32 6*f4a2713aSLionel Sambuc return __builtin_clz(X); 7*f4a2713aSLionel Sambuc } t1(int X)8*f4a2713aSLionel Sambucint t1(int X) { 9*f4a2713aSLionel Sambuc // CHECK: t1 10*f4a2713aSLionel Sambuc // CHECK: llvm.ctlz.i32 11*f4a2713aSLionel Sambuc return __builtin_clz(X); 12*f4a2713aSLionel Sambuc } 13