| 1 |
// RUN: %clang --target=x86_64 -### -c -mcmodel=large -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARG %s |
| 2 |
// RUN: %clang --target=x86_64 -### -c -mcmodel=medium -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARG %s |
| 3 |
// RUN: %clang --target=x86_64 -### -c -mcmodel=large %s 2>&1 | FileCheck --check-prefix=ARG-LARGE-DEFAULT %s |
| 4 |
// RUN: %clang --target=x86_64 -### -c -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=ARG-MEDIUM-DEFAULT %s |
| 5 |
// RUN: %clang --target=x86_64 -### -c -mcmodel=small -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=SMALL --implicit-check-not=mlarge-data-threshold %s |
| 6 |
// RUN: not %clang --target=riscv32 -### -c -mcmodel=medium -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARCH %s |
| 7 |
|
| 8 |
// ARG: "-mlarge-data-threshold=200" |
| 9 |
// ARG-MEDIUM-DEFAULT: "-mlarge-data-threshold=65536" |
| 10 |
// ARG-LARGE-DEFAULT: "-mlarge-data-threshold=0" |
| 11 |
|
| 12 |
// SMALL: 'mlarge-data-threshold=' only applies to medium and large code models |
| 13 |
// ARCH: unsupported option '-mlarge-data-threshold=' for target |