aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/riscv/riscv-opts.h
diff options
context:
space:
mode:
authorXiao Zeng <zengxiao@eswincomputing.com>2023-07-26 10:07:42 -0600
committerJeff Law <jlaw@ventanamicro.com>2023-07-26 15:10:53 -0600
commitaee2817ecd261ac2fd2717a2a36db81906ff2346 (patch)
tree76f65d0e3c4a075d86cddbe6651e4cb16e178eb4 /gcc/config/riscv/riscv-opts.h
parent744e1f35266dbd6b6fb95c7e8422562815f8b56f (diff)
downloadgcc-aee2817ecd261ac2fd2717a2a36db81906ff2346.zip
gcc-aee2817ecd261ac2fd2717a2a36db81906ff2346.tar.gz
gcc-aee2817ecd261ac2fd2717a2a36db81906ff2346.tar.bz2
[PATCH 1/5] [RISC-V] Recognize Zicond extension
gcc/ChangeLog: * common/config/riscv/riscv-common.cc: New extension. * config/riscv/riscv-opts.h (MASK_ZICOND): New mask. (TARGET_ZICOND): New target. gcc/testsuite/ChangeLog: * gcc.target/riscv/attribute-20.c: New test. * gcc.target/riscv/attribute-21.c: New test. Co-authored-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Diffstat (limited to 'gcc/config/riscv/riscv-opts.h')
-rw-r--r--gcc/config/riscv/riscv-opts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/riscv/riscv-opts.h b/gcc/config/riscv/riscv-opts.h
index beee241..5d08993 100644
--- a/gcc/config/riscv/riscv-opts.h
+++ b/gcc/config/riscv/riscv-opts.h
@@ -238,6 +238,9 @@ enum riscv_entity
#define TARGET_ZICBOM ((riscv_zicmo_subext & MASK_ZICBOM) != 0)
#define TARGET_ZICBOP ((riscv_zicmo_subext & MASK_ZICBOP) != 0)
+#define MASK_ZICOND (1 << 2)
+#define TARGET_ZICOND ((riscv_zi_subext & MASK_ZICOND) != 0)
+
#define MASK_ZFHMIN (1 << 0)
#define MASK_ZFH (1 << 1)
#define MASK_ZVFHMIN (1 << 2)