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{{(,.*)?}}"