[AArch64][GlobalISel] Add disjoint handling for add_and_or_is_add. (#123594)
[llvm-project.git] / clang / test / Driver / loongarch-mld-seq-sa.c
blob3d1d90d3f9cf72494a5a4ea796bccc08c2a22b2f
1 /// Test -m[no]ld-seq-sa options.
3 // RUN: %clang --target=loongarch64 -mld-seq-sa -fsyntax-only %s -### 2>&1 | \
4 // RUN: FileCheck %s --check-prefix=CC1-ld-seq-sa
5 // RUN: %clang --target=loongarch64 -mno-ld-seq-sa -fsyntax-only %s -### 2>&1 | \
6 // RUN: FileCheck %s --check-prefix=CC1-NO-ld-seq-sa
7 // RUN: %clang --target=loongarch64 -mno-ld-seq-sa -mld-seq-sa -fsyntax-only %s -### 2>&1 | \
8 // RUN: FileCheck %s --check-prefix=CC1-ld-seq-sa
9 // RUN: %clang --target=loongarch64 -mld-seq-sa -mno-ld-seq-sa -fsyntax-only %s -### 2>&1 | \
10 // RUN: FileCheck %s --check-prefix=CC1-NO-ld-seq-sa
12 // RUN: %clang --target=loongarch64 -mld-seq-sa -S -emit-llvm %s -o - | \
13 // RUN: FileCheck %s --check-prefix=IR-ld-seq-sa
14 // RUN: %clang --target=loongarch64 -mno-ld-seq-sa -S -emit-llvm %s -o - | \
15 // RUN: FileCheck %s --check-prefix=IR-NO-ld-seq-sa
16 // RUN: %clang --target=loongarch64 -mno-ld-seq-sa -mld-seq-sa -S -emit-llvm %s -o - | \
17 // RUN: FileCheck %s --check-prefix=IR-ld-seq-sa
18 // RUN: %clang --target=loongarch64 -mld-seq-sa -mno-ld-seq-sa -S -emit-llvm %s -o - | \
19 // RUN: FileCheck %s --check-prefix=IR-NO-ld-seq-sa
22 // CC1-ld-seq-sa: "-target-feature" "+ld-seq-sa"
23 // CC1-NO-ld-seq-sa: "-target-feature" "-ld-seq-sa"
25 // IR-ld-seq-sa: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}+ld-seq-sa{{(,.*)?}}"
26 // IR-NO-ld-seq-sa: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}-ld-seq-sa{{(,.*)?}}"
28 int foo(void) {
29 return 42;