| 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 |
| 8 |
|
| 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 |
| 13 |
|
| 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 |