aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJun Sha (Joshua) <cooper.joshua@linux.alibaba.com>2024-01-12 16:34:21 +0800
committerChristoph Müllner <christoph.muellner@vrull.eu>2024-01-18 15:32:49 +0100
commit9a55cc625c5f4b0318b16173b20dcab80cff03a1 (patch)
tree98fd518d660ffd707a78ddc2beb7f64f1f0492a7 /gcc/expr.cc
parentd05b5265110709996fa19af1267c6669b7992879 (diff)
downloadgcc-9a55cc625c5f4b0318b16173b20dcab80cff03a1.zip
gcc-9a55cc625c5f4b0318b16173b20dcab80cff03a1.tar.gz
gcc-9a55cc625c5f4b0318b16173b20dcab80cff03a1.tar.bz2
RISC-V: Adds the prefix "th." for the instructions of XTheadVector.
This patch adds th. prefix to all XTheadVector instructions by implementing new assembly output functions. We only check the prefix is 'v', so that no extra attribute is needed. gcc/ChangeLog: * config/riscv/riscv-protos.h (riscv_asm_output_opcode): Add new function to add assembler insn code prefix/suffix. (th_asm_output_opcode): Add Thead function to add assembler insn code prefix/suffix. * config/riscv/riscv.cc (riscv_asm_output_opcode): Implement function to add assembler insn code prefix/suffix. * config/riscv/riscv.h (ASM_OUTPUT_OPCODE): Add new function to add assembler insn code prefix/suffix. * config/riscv/thead.cc (th_asm_output_opcode): Implement Thead function to add assembler insn code prefix/suffix. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/xtheadvector/prefix.c: New test. Co-authored-by: Jin Ma <jinma@linux.alibaba.com> Co-authored-by: Xianmiao Qu <cooper.qu@linux.alibaba.com> Co-authored-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions