[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>
Showing
Loading
Please register or sign in to comment