[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / clang / test / Driver / large-data-threshold.c
blob6500edc0fc0ef2911b1c75631af79c9dff3b9d5f
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
8 // ARG: "-mlarge-data-threshold=200"
9 // ARG-MEDIUM-DEFAULT: "-mlarge-data-threshold=65536"
10 // ARG-LARGE-DEFAULT: "-mlarge-data-threshold=0"
12 // SMALL: 'mlarge-data-threshold=' only applies to medium and large code models
13 // ARCH: unsupported option '-mlarge-data-threshold=' for target