xref: /llvm-project/clang/test/Driver/large-data-threshold.c (revision f05b0812145897ba34bc2d7fda436a54f9fbca22)
1*f05b0812SArthur Eubanks // RUN: %clang --target=x86_64 -### -c -mcmodel=large -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARG %s
2a42787d1SArthur Eubanks // RUN: %clang --target=x86_64 -### -c -mcmodel=medium -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARG %s
3*f05b0812SArthur Eubanks // RUN: %clang --target=x86_64 -### -c -mcmodel=large %s 2>&1 | FileCheck --check-prefix=ARG-LARGE-DEFAULT %s
4*f05b0812SArthur Eubanks // RUN: %clang --target=x86_64 -### -c -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=ARG-MEDIUM-DEFAULT %s
5*f05b0812SArthur Eubanks // 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
6a42787d1SArthur Eubanks // RUN: not %clang --target=riscv32 -### -c -mcmodel=medium -mlarge-data-threshold=200 %s 2>&1 | FileCheck --check-prefix=ARCH %s
7a42787d1SArthur Eubanks 
8a42787d1SArthur Eubanks // ARG: "-mlarge-data-threshold=200"
9*f05b0812SArthur Eubanks // ARG-MEDIUM-DEFAULT: "-mlarge-data-threshold=65536"
10*f05b0812SArthur Eubanks // ARG-LARGE-DEFAULT: "-mlarge-data-threshold=0"
11a42787d1SArthur Eubanks 
12*f05b0812SArthur Eubanks // SMALL: 'mlarge-data-threshold=' only applies to medium and large code models
13*f05b0812SArthur Eubanks // ARCH: unsupported option '-mlarge-data-threshold=' for target
14