From: Yi Kong Date: Sun, 13 Jul 2014 16:17:30 +0000 (+0000) Subject: Add test cases for AArch64 hints codegen X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=351be023e68a713aa3ffcfae7cca21935b1f913c;p=clang Add test cases for AArch64 hints codegen git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212909 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/builtins-arm64.c b/test/CodeGen/builtins-arm64.c index 9e3460c866..8e15b846aa 100644 --- a/test/CodeGen/builtins-arm64.c +++ b/test/CodeGen/builtins-arm64.c @@ -14,3 +14,11 @@ unsigned rbit(unsigned a) { unsigned long long rbit64(unsigned long long a) { return __builtin_arm_rbit64(a); } + +void hints() { + __builtin_arm_yield(); //CHECK: call {{.*}} @llvm.aarch64.hint(i32 1) + __builtin_arm_wfe(); //CHECK: call {{.*}} @llvm.aarch64.hint(i32 2) + __builtin_arm_wfi(); //CHECK: call {{.*}} @llvm.aarch64.hint(i32 3) + __builtin_arm_sev(); //CHECK: call {{.*}} @llvm.aarch64.hint(i32 4) + __builtin_arm_sevl(); //CHECK: call {{.*}} @llvm.aarch64.hint(i32 5) +}