forked from OSchip/llvm-project
42 lines
949 B
C
42 lines
949 B
C
// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -emit-llvm -o - %s \
|
|
// RUN: | FileCheck %s -check-prefix CHECK-MSVC
|
|
// RUN: %clang_cc1 -triple armv7-eabi -emit-llvm %s -o - \
|
|
// RUN: | FileCheck %s -check-prefix CHECK-EABI
|
|
// REQUIRES: arm-registered-target
|
|
|
|
void test_yield_intrinsic() {
|
|
__yield();
|
|
}
|
|
|
|
// CHECK-MSVC: call void @llvm.arm.hint(i32 1)
|
|
// CHECK-EABI-NOT: call void @llvm.arm.hint(i32 1)
|
|
|
|
void wfe() {
|
|
__wfe();
|
|
}
|
|
|
|
// CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 2)
|
|
// CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 2)
|
|
|
|
void wfi() {
|
|
__wfi();
|
|
}
|
|
|
|
// CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 3)
|
|
// CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 3)
|
|
|
|
void sev() {
|
|
__sev();
|
|
}
|
|
|
|
// CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 4)
|
|
// CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 4)
|
|
|
|
void sevl() {
|
|
__sevl();
|
|
}
|
|
|
|
// CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 5)
|
|
// CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 5)
|
|
|