1 ; RUN: llc -mtriple armv7-eabi -o - %s | FileCheck %s
2 ; RUN: llc -mtriple thumbv6m-eabi -o - %s | FileCheck %s
3 ; RUN: llc -mtriple thumbv7-eabi -o - %s | FileCheck %s
5 declare void @llvm.arm.hint(i32) nounwind
7 define void @hint_nop() {
9 tail call void @llvm.arm.hint(i32 0) nounwind
13 ; CHECK-LABEL: hint_nop
16 define void @hint_yield() {
18 tail call void @llvm.arm.hint(i32 1) nounwind
22 ; CHECK-LABEL: hint_yield
25 define void @hint_wfe() {
27 tail call void @llvm.arm.hint(i32 2) nounwind
31 ; CHECK-LABEL: hint_wfe
34 define void @hint_wfi() {
36 tail call void @llvm.arm.hint(i32 3) nounwind
40 ; CHECK-LABEL: hint_wfi
43 define void @hint_sev() {
45 tail call void @llvm.arm.hint(i32 4) nounwind
49 ; CHECK-LABEL: hint_sev
52 define void @hint_sevl() {
54 tail call void @llvm.arm.hint(i32 5) nounwind
58 ; CHECK-LABEL: hint_sevl
61 define void @hint_undefined() {
63 tail call void @llvm.arm.hint(i32 8) nounwind
67 ; CHECK-LABEL: hint_undefined