30 lines · plain
1//// Enabled by default for assembly2// RUN: %clang --target=riscv32 -### %s 2>&1 \3// RUN: | FileCheck %s --check-prefix=CHECK-ENABLED4// RUN: %clang --target=riscv64 -### %s 2>&1 \5// RUN: | FileCheck %s --check-prefix=CHECK-ENABLED6 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-DISABLED10// RUN: %clang --target=riscv64 -### %s 2>&1 -mno-default-build-attributes \11// RUN: | FileCheck %s --check-prefix=CHECK-DISABLED12// RUN: %clang --target=riscv32 -### %s 2>&1 -mdefault-build-attributes \13// RUN: | FileCheck %s --check-prefix=CHECK-ENABLED14// RUN: %clang --target=riscv64 -### %s 2>&1 -mdefault-build-attributes \15// RUN: | FileCheck %s --check-prefix=CHECK-ENABLED16 17/// Option ignored for C/C++ (since we always emit hardware and ABI build18/// attributes during codegen).19// RUN: %clang --target=riscv32 -### -x c %s -mdefault-build-attributes 2>&1 \20// RUN: | FileCheck %s --check-prefix=CHECK-DISABLED21// RUN: %clang --target=riscv64 -### -x c %s -mdefault-build-attributes 2>&1 \22// RUN: | FileCheck %s --check-prefix=CHECK-DISABLED23// RUN: %clang --target=riscv32 -### -x c++ %s -mdefault-build-attributes 2>&1 \24// RUN: | FileCheck %s --check-prefix=CHECK-DISABLED25// RUN: %clang --target=riscv64 -### -x c++ %s -mdefault-build-attributes 2>&1 \26// RUN: | FileCheck %s --check-prefix=CHECK-DISABLED27 28// CHECK-DISABLED-NOT: "-riscv-add-build-attributes"29// CHECK-ENABLED: "-riscv-add-build-attributes"30