[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / builtins-arm-microsoft.c
blob841a8a500d533d08e85f776e73b3e7085c46d7fa
1 // RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -emit-llvm -o - %s \
2 // RUN: | FileCheck %s -check-prefix CHECK-MSVC
3 // RUN: %clang_cc1 -Wno-implicit-function-declaration -triple armv7-eabi -emit-llvm %s -o - \
4 // RUN: | FileCheck %s -check-prefix CHECK-EABI
5 // REQUIRES: arm-registered-target
7 void test_yield_intrinsic() {
8 __yield();
11 // CHECK-MSVC: call void @llvm.arm.hint(i32 1)
12 // CHECK-EABI-NOT: call void @llvm.arm.hint(i32 1)
14 void wfe() {
15 __wfe();
18 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 2)
19 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 2)
21 void wfi() {
22 __wfi();
25 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 3)
26 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 3)
28 void sev() {
29 __sev();
32 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 4)
33 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 4)
35 void sevl() {
36 __sevl();
39 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 5)
40 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 5)