brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · a9ae8c5 Raw
121 lines · c
1// RUN: %clang -E -target bpfel -mcpu=v1 -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_NO %s2// RUN: %clang -E -target bpfeb -mcpu=v1 -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_NO %s3// RUN: %clang -E -target bpfel -mcpu=v1 -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_V1 %s4// RUN: %clang -E -target bpfel -mcpu=v2 -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_V2 %s5// RUN: %clang -E -target bpfel -mcpu=v3 -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_V3 %s6// RUN: %clang -E -target bpfel -mcpu=v4 -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_V4 %s7// RUN: %clang -E -target bpfel -mcpu=generic -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_GENERIC %s8// RUN: %clang -E -target bpfel -mcpu=probe -x c -o - %s | FileCheck -check-prefix=CHECK -check-prefix=CPU_PROBE %s9 10#ifdef __bpf__11int b;12#endif13#ifdef __BPF__14int c;15#endif16#ifdef bpf17int d;18#endif19#ifdef __BPF_CPU_VERSION__20int e;21#endif22#if __BPF_CPU_VERSION__ == 023int f;24#endif25#if __BPF_CPU_VERSION__ == 126int g;27#endif28#if __BPF_CPU_VERSION__ == 229int h;30#endif31#if __BPF_CPU_VERSION__ == 332int i;33#endif34#if __BPF_CPU_VERSION__ == 435int j;36#endif37#ifdef __BPF_FEATURE_JMP_EXT38int k;39#endif40#ifdef __BPF_FEATURE_JMP3241int l;42#endif43#ifdef __BPF_FEATURE_ALU3244int m;45#endif46#ifdef __BPF_FEATURE_LDSX47int n;48#endif49#ifdef __BPF_FEATURE_MOVSX50int o;51#endif52#ifdef __BPF_FEATURE_BSWAP53int p;54#endif55#ifdef __BPF_FEATURE_SDIV_SMOD56int q;57#endif58#ifdef __BPF_FEATURE_GOTOL59int r;60#endif61#ifdef __BPF_FEATURE_ST62int s;63#endif64#ifdef __BPF_FEATURE_ADDR_SPACE_CAST65int t;66#endif67#ifdef __BPF_FEATURE_MAY_GOTO68int u;69#endif70#ifdef __BPF_FEATURE_LOAD_ACQ_STORE_REL71int v;72#endif73#ifdef __BPF_FEATURE_GOTOX74int w;75#endif76 77// CHECK: int b;78// CHECK: int c;79// CHECK-NOT: int d;80// CHECK: int e;81 82// CPU_NO: int g;83 84// CPU_V1: int g;85 86// CPU_V2: int h;87// CPU_V2: int k;88 89// CPU_V3: int i;90// CPU_V3: int k;91// CPU_V3: int l;92// CPU_V3: int m;93 94// CPU_V4: int j;95// CPU_V4: int k;96// CPU_V4: int l;97// CPU_V4: int m;98// CPU_V4: int n;99// CPU_V4: int o;100// CPU_V4: int p;101// CPU_V4: int q;102// CPU_V4: int r;103// CPU_V4: int s;104 105// CPU_V1: int t;106// CPU_V2: int t;107// CPU_V3: int t;108// CPU_V4: int t;109 110// CPU_V1: int u;111// CPU_V2: int u;112// CPU_V3: int u;113// CPU_V4: int u;114 115// CPU_V4: int v;116// CPU_V4: int w;117 118// CPU_GENERIC: int g;119 120// CPU_PROBE: int f;121