[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / PowerPC / builtins-ppc-cache.c
blobb8a63394eb52aec0bfbebc0a0e4e631d4596516e
1 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm \
2 // RUN: -o - %s | FileCheck %s
4 int A;
5 int B[5];
6 float C;
7 float D[5];
8 double E;
9 double F[5];
11 void func(int a, int b[], float c, float d[], double e, double f[]) {
12 __builtin_dcbf (&a);
13 // CHECK: @llvm.ppc.dcbf(ptr
15 __builtin_dcbf (&A);
16 // CHECK: @llvm.ppc.dcbf(ptr
18 __builtin_dcbf (&b[2]);
19 // CHECK: @llvm.ppc.dcbf(ptr
21 __builtin_dcbf (&B[2]);
22 // CHECK: @llvm.ppc.dcbf(ptr
24 __builtin_dcbf (&c);
25 // CHECK: @llvm.ppc.dcbf(ptr
27 __builtin_dcbf (&C);
28 // CHECK: @llvm.ppc.dcbf(ptr
30 __builtin_dcbf (&d[2]);
31 // CHECK: @llvm.ppc.dcbf(ptr
33 __builtin_dcbf (&D[2]);
34 // CHECK: @llvm.ppc.dcbf(ptr
36 __builtin_dcbf (&e);
37 // CHECK: @llvm.ppc.dcbf(ptr
39 __builtin_dcbf (&E);
40 // CHECK: @llvm.ppc.dcbf(ptr
42 __builtin_dcbf (&f[0]);
43 // CHECK: @llvm.ppc.dcbf(ptr
45 __builtin_dcbf (&F[0]);
46 // CHECK: @llvm.ppc.dcbf(ptr