annotate clang/test/CodeGen/builtins-ppc-htm.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: powerpc-registered-target
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -target-feature +altivec -target-feature +htm -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 void test1(long int *r, int code, long int *a, long int *b) {
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 // CHECK-LABEL: define{{.*}} void @test1
150
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 r[0] = __builtin_tbegin (0);
anatofuz
parents:
diff changeset
8 // CHECK: @llvm.ppc.tbegin
anatofuz
parents:
diff changeset
9 r[1] = __builtin_tbegin (1);
anatofuz
parents:
diff changeset
10 // CHECK: @llvm.ppc.tbegin
anatofuz
parents:
diff changeset
11 r[2] = __builtin_tend (0);
anatofuz
parents:
diff changeset
12 // CHECK: @llvm.ppc.tend
anatofuz
parents:
diff changeset
13 r[3] = __builtin_tendall ();
anatofuz
parents:
diff changeset
14 // CHECK: @llvm.ppc.tendall
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 r[4] = __builtin_tabort (code);
anatofuz
parents:
diff changeset
17 // CHECK: @llvm.ppc.tabort
anatofuz
parents:
diff changeset
18 r[5] = __builtin_tabort (0x1);
anatofuz
parents:
diff changeset
19 // CHECK: @llvm.ppc.tabort
anatofuz
parents:
diff changeset
20 r[6] = __builtin_tabortdc (0xf, a[0], b[0]);
anatofuz
parents:
diff changeset
21 // CHECK: @llvm.ppc.tabortdc
anatofuz
parents:
diff changeset
22 r[7] = __builtin_tabortdci (0xf, a[1], 0x1);
anatofuz
parents:
diff changeset
23 // CHECK: @llvm.ppc.tabortdc
anatofuz
parents:
diff changeset
24 r[8] = __builtin_tabortwc (0xf, a[2], b[2]);
anatofuz
parents:
diff changeset
25 // CHECK: @llvm.ppc.tabortwc
anatofuz
parents:
diff changeset
26 r[9] = __builtin_tabortwci (0xf, a[3], 0x1);
anatofuz
parents:
diff changeset
27 // CHECK: @llvm.ppc.tabortwc
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 r[10] = __builtin_tcheck ();
anatofuz
parents:
diff changeset
30 // CHECK: @llvm.ppc.tcheck
anatofuz
parents:
diff changeset
31 r[11] = __builtin_trechkpt ();
anatofuz
parents:
diff changeset
32 // CHECK: @llvm.ppc.trechkpt
anatofuz
parents:
diff changeset
33 r[12] = __builtin_treclaim (0);
anatofuz
parents:
diff changeset
34 // CHECK: @llvm.ppc.treclaim
anatofuz
parents:
diff changeset
35 r[13] = __builtin_tresume ();
anatofuz
parents:
diff changeset
36 // CHECK: @llvm.ppc.tresume
anatofuz
parents:
diff changeset
37 r[14] = __builtin_tsuspend ();
anatofuz
parents:
diff changeset
38 // CHECK: @llvm.ppc.tsuspend
anatofuz
parents:
diff changeset
39 r[15] = __builtin_tsr (0);
anatofuz
parents:
diff changeset
40 // CHECK: @llvm.ppc.tsr
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 r[16] = __builtin_ttest ();
anatofuz
parents:
diff changeset
43 // CHECK: @llvm.ppc.ttest
anatofuz
parents:
diff changeset
44
anatofuz
parents:
diff changeset
45 r[17] = __builtin_get_texasr ();
anatofuz
parents:
diff changeset
46 // CHECK: @llvm.ppc.get.texasr
anatofuz
parents:
diff changeset
47 r[18] = __builtin_get_texasru ();
anatofuz
parents:
diff changeset
48 // CHECK: @llvm.ppc.get.texasru
anatofuz
parents:
diff changeset
49 r[19] = __builtin_get_tfhar ();
anatofuz
parents:
diff changeset
50 // CHECK: @llvm.ppc.get.tfhar
anatofuz
parents:
diff changeset
51 r[20] = __builtin_get_tfiar ();
anatofuz
parents:
diff changeset
52 // CHECK: @llvm.ppc.get.tfiar
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 __builtin_set_texasr (a[21]);
anatofuz
parents:
diff changeset
55 // CHECK: @llvm.ppc.set.texasr
anatofuz
parents:
diff changeset
56 __builtin_set_texasru (a[22]);
anatofuz
parents:
diff changeset
57 // CHECK: @llvm.ppc.set.texasru
anatofuz
parents:
diff changeset
58 __builtin_set_tfhar (a[23]);
anatofuz
parents:
diff changeset
59 // CHECK: @llvm.ppc.set.tfhar
anatofuz
parents:
diff changeset
60 __builtin_set_tfiar (a[24]);
anatofuz
parents:
diff changeset
61 // CHECK: @llvm.ppc.set.tfiar
anatofuz
parents:
diff changeset
62 }