|
15 | 15 | // RUN: not %clang -### -c --target=aarch64 -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=ERR-MEDIUM %s
|
16 | 16 | // RUN: not %clang -### -c --target=aarch64 -mcmodel=kernel %s 2>&1 | FileCheck --check-prefix=ERR-KERNEL %s
|
17 | 17 | // RUN: not %clang --target=aarch64_32-linux -### -S -mcmodel=small %s 2>&1 | FileCheck --check-prefix=ERR-AARCH64_32 %s
|
| 18 | +// RUN: %clang --target=loongarch64 -### -S -mcmodel=normal %s 2>&1 | FileCheck --check-prefix=SMALL %s |
| 19 | +// RUN: %clang --target=loongarch64 -### -S -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=MEDIUM %s |
| 20 | +// RUN: %clang --target=loongarch64 -### -S -mcmodel=extreme %s 2>&1 | FileCheck --check-prefix=LARGE %s |
| 21 | +// RUN: not %clang --target=loongarch64 -### -S -mcmodel=tiny %s 2>&1 | FileCheck --check-prefix=ERR-TINY %s |
| 22 | +// RUN: not %clang --target=loongarch64 -### -S -mcmodel=small %s 2>&1 | FileCheck --check-prefix=ERR-SMALL %s |
| 23 | +// RUN: not %clang --target=loongarch64 -### -S -mcmodel=kernel %s 2>&1 | FileCheck --check-prefix=ERR-KERNEL %s |
| 24 | +// RUN: not %clang --target=loongarch64 -### -S -mcmodel=large %s 2>&1 | FileCheck --check-prefix=ERR-LARGE %s |
| 25 | +// RUN: not %clang --target=loongarch64 -### -S -mcmodel=extreme -fplt %s 2>&1 | FileCheck --check-prefix=ERR-LOONGARCH64-PLT-EXTREME %s |
18 | 26 |
|
19 | 27 | // TINY: "-mcmodel=tiny"
|
20 | 28 | // SMALL: "-mcmodel=small"
|
|
25 | 33 |
|
26 | 34 | // INVALID: error: unsupported argument 'lager' to option '-mcmodel=' for target '{{.*}}'
|
27 | 35 |
|
| 36 | +// ERR-TINY: error: unsupported argument 'tiny' to option '-mcmodel=' for target '{{.*}}' |
| 37 | +// ERR-SMALL: error: unsupported argument 'small' to option '-mcmodel=' for target '{{.*}}' |
28 | 38 | // ERR-MEDIUM: error: unsupported argument 'medium' to option '-mcmodel=' for target '{{.*}}'
|
29 | 39 | // ERR-KERNEL: error: unsupported argument 'kernel' to option '-mcmodel=' for target '{{.*}}'
|
30 | 40 | // ERR-LARGE: error: unsupported argument 'large' to option '-mcmodel=' for target '{{.*}}'
|
31 | 41 |
|
32 | 42 | // AARCH64-PIC-LARGE: error: invalid argument '-mcmodel=large' only allowed with '-fno-pic'
|
33 | 43 | // ERR-AARCH64_32: error: unsupported argument 'small' to option '-mcmodel=' for target 'aarch64_32-unknown-linux'
|
| 44 | + |
| 45 | +// ERR-LOONGARCH64-PLT-LARGE: error: invalid argument '-mcmodel=large' not allowed with '-fplt' |
| 46 | +// ERR-LOONGARCH64-PLT-EXTREME: error: invalid argument '-mcmodel=extreme' not allowed with '-fplt' |
0 commit comments