// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -w -emit-llvm -o - %s -fsanitize=builtin | FileCheck %s
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -w -emit-llvm -o - %s -fsanitize=builtin | FileCheck %s --check-prefix=NOT-UB
// NOT-UB-NOT: __ubsan_handle_invalid_builtin
// CHECK: define{{.*}} void @check_ctz
void
// CHECK: define{{.*}} void @check_clz
void