[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / riscv-default-build-attributes.s
blob5d2e08371cb5d10ae7c38a865c9736c8a646ac97
1 //// Enabled by default for assembly
2 // RUN: %clang --target=riscv32 -### %s 2>&1 \
3 // RUN: | FileCheck %s --check-prefix=CHECK-ENABLED
4 // RUN: %clang --target=riscv64 -### %s 2>&1 \
5 // RUN: | FileCheck %s --check-prefix=CHECK-ENABLED
7 /// Can be forced on or off for assembly.
8 // RUN: %clang --target=riscv32 -### %s 2>&1 -mno-default-build-attributes \
9 // RUN: | FileCheck %s --check-prefix=CHECK-DISABLED
10 // RUN: %clang --target=riscv64 -### %s 2>&1 -mno-default-build-attributes \
11 // RUN: | FileCheck %s --check-prefix=CHECK-DISABLED
12 // RUN: %clang --target=riscv32 -### %s 2>&1 -mdefault-build-attributes \
13 // RUN: | FileCheck %s --check-prefix=CHECK-ENABLED
14 // RUN: %clang --target=riscv64 -### %s 2>&1 -mdefault-build-attributes \
15 // RUN: | FileCheck %s --check-prefix=CHECK-ENABLED
17 /// Option ignored for C/C++ (since we always emit hardware and ABI build
18 /// attributes during codegen).
19 // RUN: %clang --target=riscv32 -### -x c %s -mdefault-build-attributes 2>&1 \
20 // RUN: | FileCheck %s --check-prefix=CHECK-DISABLED
21 // RUN: %clang --target=riscv64 -### -x c %s -mdefault-build-attributes 2>&1 \
22 // RUN: | FileCheck %s --check-prefix=CHECK-DISABLED
23 // RUN: %clang --target=riscv32 -### -x c++ %s -mdefault-build-attributes 2>&1 \
24 // RUN: | FileCheck %s --check-prefix=CHECK-DISABLED
25 // RUN: %clang --target=riscv64 -### -x c++ %s -mdefault-build-attributes 2>&1 \
26 // RUN: | FileCheck %s --check-prefix=CHECK-DISABLED
28 // CHECK-DISABLED-NOT: "-riscv-add-build-attributes"
29 // CHECK-ENABLED: "-riscv-add-build-attributes"