[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang / test / CodeGen / RISCV / attr-hw-shadow-stack.c
blobcabff7e598eb02a65a03de12f768b5726b552d68
1 // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-zicfiss -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
2 // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-zicfiss -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
3 // RUN: %clang_cc1 -triple riscv32 -target-feature +experimental-zicfiss -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
4 // RUN: %clang_cc1 -triple riscv32 -target-feature +experimental-zicfiss -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
6 int foo(int *a) { return *a; }
8 // CHECK: attributes {{.*}}"hw-shadow-stack"{{.*}}
9 // NOSHADOWSTACK-NOT: attributes {{.*}}"hw-shadow-stack"{{.*}}