1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple arm-unknown-unknown -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK-ARM 3*f4a2713aSLionel Sambuc a(int a)4*f4a2713aSLionel Sambucint a(int a) {return __builtin_ctz(a) + __builtin_clz(a);} 5*f4a2713aSLionel Sambuc // CHECK: call i32 @llvm.cttz.i32({{.*}}, i1 true) 6*f4a2713aSLionel Sambuc // CHECK: call i32 @llvm.ctlz.i32({{.*}}, i1 true) 7*f4a2713aSLionel Sambuc // CHECK-ARM: call i32 @llvm.cttz.i32({{.*}}, i1 false) 8*f4a2713aSLionel Sambuc // CHECK-ARM: call i32 @llvm.ctlz.i32({{.*}}, i1 false) 9