builtins-ppc-cache.c
915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm \
// RUN: -o - %s | FileCheck %s
int A;
int B[5];
float C;
float D[5];
double E;
double F[5];
void func(int a, int b[], float c, float d[], double e, double f[]) {
__builtin_dcbf (&a);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&A);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&b[2]);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&B[2]);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&c);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&C);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&d[2]);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&D[2]);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&e);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&E);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&f[0]);
// CHECK: @llvm.ppc.dcbf(i8*
__builtin_dcbf (&F[0]);
// CHECK: @llvm.ppc.dcbf(i8*
}