diff options
author | Xiao Zeng <zengxiao@eswincomputing.com> | 2023-07-26 11:59:59 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2023-07-26 15:12:18 -0600 |
commit | 74290c664d1d4c067a996253fe505555ec671668 (patch) | |
tree | e1501a36fb5cca8ee6bd67cb0582f7d809c43522 /gcc/cp/constexpr.cc | |
parent | aee2817ecd261ac2fd2717a2a36db81906ff2346 (diff) | |
download | gcc-74290c664d1d4c067a996253fe505555ec671668.zip gcc-74290c664d1d4c067a996253fe505555ec671668.tar.gz gcc-74290c664d1d4c067a996253fe505555ec671668.tar.bz2 |
[PATCH 2/5] [RISC-V] Generate Zicond instruction for basic semantics
This patch completes the recognition of the basic semantics
defined in the spec, namely:
Conditional zero, if condition is equal to zero
rd = (rs2 == 0) ? 0 : rs1
Conditional zero, if condition is non zero
rd = (rs2 != 0) ? 0 : rs1
gcc/ChangeLog:
* config/riscv/riscv.md: Include zicond.md
* config/riscv/zicond.md: New file.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/zicond-primitiveSemantics.c: New test.
Co-authored-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Co-authored-by: Raphael Zinsly <rzinsly@ventanamicro.com>
Co-authored-by: Jeff Law <jlaw@ventanamicro.com>
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions