annotate clang/test/CodeGen/builtins-arm-microsoft.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -emit-llvm -o - %s \
anatofuz
parents:
diff changeset
2 // RUN: | FileCheck %s -check-prefix CHECK-MSVC
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -triple armv7-eabi -emit-llvm %s -o - \
anatofuz
parents:
diff changeset
4 // RUN: | FileCheck %s -check-prefix CHECK-EABI
anatofuz
parents:
diff changeset
5 // REQUIRES: arm-registered-target
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 void test_yield_intrinsic() {
anatofuz
parents:
diff changeset
8 __yield();
anatofuz
parents:
diff changeset
9 }
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // CHECK-MSVC: call void @llvm.arm.hint(i32 1)
anatofuz
parents:
diff changeset
12 // CHECK-EABI-NOT: call void @llvm.arm.hint(i32 1)
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 void wfe() {
anatofuz
parents:
diff changeset
15 __wfe();
anatofuz
parents:
diff changeset
16 }
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 2)
anatofuz
parents:
diff changeset
19 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 2)
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 void wfi() {
anatofuz
parents:
diff changeset
22 __wfi();
anatofuz
parents:
diff changeset
23 }
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 3)
anatofuz
parents:
diff changeset
26 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 3)
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 void sev() {
anatofuz
parents:
diff changeset
29 __sev();
anatofuz
parents:
diff changeset
30 }
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 4)
anatofuz
parents:
diff changeset
33 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 4)
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 void sevl() {
anatofuz
parents:
diff changeset
36 __sevl();
anatofuz
parents:
diff changeset
37 }
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 // CHECK-MSVC: call {{.*}} @llvm.arm.hint(i32 5)
anatofuz
parents:
diff changeset
40 // CHECK-EABI-NOT: call {{.*}} @llvm.arm.hint(i32 5)
anatofuz
parents:
diff changeset
41