[Flang][OpenMP] Use internal linkage for OpenMP code-gen'ed helper functions (#117911)
[llvm-project.git] / clang / test / Driver / arm-aarch64-bitfield-flags.c
blob49dc9778db870aa46fcc1078d4d3185396249079
1 /// check -faapcs-bitfield-width/-fno-aapcs-bitfield-width
2 // RUN: %clang -target arm-arm-none-eabi -march=armv8-m.main -faapcs-bitfield-width -### %s 2>&1 | FileCheck --check-prefixes=WIDTH,INVERSE-WIDTH %s
3 // RUN: not %clang --target=aarch64 -march=armv8-m.main -faapcs-bitfield-width -### %s 2>&1 | FileCheck --check-prefixes=WIDTH,INVERSE-WIDTH %s
4 // RUN: %clang -target arm-arm-none-eabi -march=armv8-m.main -fno-aapcs-bitfield-width -### %s 2>&1 | FileCheck --check-prefixes=NO-WIDTH,WIDTH %s
5 // RUN: not %clang --target=aarch64 -march=armv8-m.main -fno-aapcs-bitfield-width -### %s 2>&1 | FileCheck --check-prefixes=NO-WIDTH,WIDTH %s
6 // WIDTH-NOT: -faapcs-bitfield-width
7 // NO-WIDTH: -fno-aapcs-bitfield-width
9 /// check -faapcs-bitfield-load
10 // RUN: %clang -target arm-arm-none-eabi -march=armv8-m.main -faapcs-bitfield-load -### %s 2>&1 | FileCheck --check-prefix=LOAD %s
11 // RUN: not %clang --target=aarch64 -march=armv8-m.main -faapcs-bitfield-load -### %s 2>&1 | FileCheck --check-prefix=LOAD %s
12 // LOAD: -faapcs-bitfield-load
14 /// check absence of the above argument when not given
15 // RUN: %clang -target arm-arm-none-eabi -march=armv8-m.main -### %s 2>&1 | FileCheck --check-prefixes=INVERSE-WIDTH,INVERSE-LOAD %s
16 // RUN: not %clang --target=aarch64 -march=armv8-m.main -### %s 2>&1 | FileCheck --check-prefixes=INVERSE-WIDTH,INVERSE-LOAD %s
17 // INVERSE-WIDTH-NOT: -fno-aapcs-bitfield-width
18 // INVERSE-LOAD-NOT: -fno-aapcs-bitfield-load