Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / builtin-count-zeros.c
blobacd22e69a7c6b6fc25035796245f8b1a403e9cf6
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple arm-unknown-unknown -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK-ARM
4 int a(int a) {return __builtin_ctz(a) + __builtin_clz(a);}
5 // CHECK: call i32 @llvm.cttz.i32({{.*}}, i1 true)
6 // CHECK: call i32 @llvm.ctlz.i32({{.*}}, i1 true)
7 // CHECK-ARM: call i32 @llvm.cttz.i32({{.*}}, i1 false)
8 // CHECK-ARM: call i32 @llvm.ctlz.i32({{.*}}, i1 false)