1 ; RUN: llc -mtriple=aarch64 -o - %s | FileCheck %s
3 declare void @llvm.aarch64.hint(i32) nounwind
5 define void @hint_nop() {
7 tail call void @llvm.aarch64.hint(i32 0) nounwind
11 ; CHECK-LABEL: hint_nop
14 define void @hint_yield() {
16 tail call void @llvm.aarch64.hint(i32 1) nounwind
20 ; CHECK-LABEL: hint_yield
23 define void @hint_wfe() {
25 tail call void @llvm.aarch64.hint(i32 2) nounwind
29 ; CHECK-LABEL: hint_wfe
32 define void @hint_wfi() {
34 tail call void @llvm.aarch64.hint(i32 3) nounwind
38 ; CHECK-LABEL: hint_wfi
41 define void @hint_sev() {
43 tail call void @llvm.aarch64.hint(i32 4) nounwind
47 ; CHECK-LABEL: hint_sev
50 define void @hint_sevl() {
52 tail call void @llvm.aarch64.hint(i32 5) nounwind
56 ; CHECK-LABEL: hint_sevl
59 define void @hint_undefined() {
61 tail call void @llvm.aarch64.hint(i32 8) nounwind
65 ; CHECK-LABEL: hint_undefined