// RUN: %clang_cc1 -triple arm64-apple-ios -O3 -emit-llvm -o - %s | FileCheck %s

void f0(void *a, void *b) {
	__clear_cache(a,b);
// CHECK: call {{.*}} @__clear_cache
}

// CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a)
unsigned rbit(unsigned a) {
  return __builtin_arm_rbit(a);
}

// CHECK: call {{.*}} @llvm.aarch64.rbit.i64(i64 %a)
unsigned long long rbit64(unsigned long long a) {
  return __builtin_arm_rbit64(a);
}

// RUN: %clang_cc1 -triple arm64-apple-ios -O3 -emit-llvm -o - %s | FileCheck %s

void f0(void *a, void *b) {
	__clear_cache(a,b);
// CHECK: call {{.*}} @__clear_cache
}

// CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a)
void rbit(unsigned a) {
  __builtin_arm_rbit(a);
}

// CHECK: call {{.*}} @llvm.aarch64.rbit.i64(i64 %a)
void rbit64(unsigned long long a) {
  __builtin_arm_rbit64(a);
}

--- 
+++ 
@@ -6,11 +6,11 @@
 }
 
 // CHECK: call {{.*}} @llvm.aarch64.rbit.i32(i32 %a)
-void rbit(unsigned a) {
-  __builtin_arm_rbit(a);
+unsigned rbit(unsigned a) {
+  return __builtin_arm_rbit(a);
 }
 
 // CHECK: call {{.*}} @llvm.aarch64.rbit.i64(i64 %a)
-void rbit64(unsigned long long a) {
-  __builtin_arm_rbit64(a);
+unsigned long long rbit64(unsigned long long a) {
+  return __builtin_arm_rbit64(a);
 }
AArch64: Fix silly think-o in tests.

rdar://9283021

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@211064 91177308-0d34-0410-b5e6-96231b3b80d8
