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