|
| 1 | +# yaml-language-server: $schema=../../../../schemas/ext_schema.json |
| 2 | + |
| 3 | +$schema: ext_schema.json# |
| 4 | +kind: extension |
| 5 | +name: Xqccmp |
| 6 | +long_name: 16-bit Push/Pop instructions and double-moves |
| 7 | +type: unprivileged |
| 8 | +versions: |
| 9 | +- version: "0.1.0" |
| 10 | + state: development |
| 11 | + ratification_date: null |
| 12 | + contributors: |
| 13 | + - name: Albert Yosher |
| 14 | + company: Qualcomm Technologies, Inc. |
| 15 | + |
| 16 | + - name: Derek Hower |
| 17 | + company: Qualcomm Technologies, Inc. |
| 18 | + |
| 19 | + - name: Ana Pazos |
| 20 | + company: Qualcomm Technologies, Inc. |
| 21 | + |
| 22 | + - name: James Ball |
| 23 | + company: Qualcomm Technologies, Inc. |
| 24 | + |
| 25 | + requires: |
| 26 | + name: Zca |
| 27 | + version: ">= 1.0.0" |
| 28 | +description: | |
| 29 | + The Xqccmp extension is a set of instructions which may be executed as a series of existing 32-bit RISC-V instructions. |
| 30 | +
|
| 31 | + This extension reuses some encodings from _c.fsdsp_. Therefore it is _incompatible_ with <<Zcd>>, |
| 32 | + which is included when C and D extensions are both present. |
| 33 | +
|
| 34 | + NOTE: Xqccmp is primarily targeted at embedded class CPUs due to implementation complexity. Additionally, it is not compatible with architecture class profiles. |
| 35 | +
|
| 36 | + The Xqccmp extension depends on the <<Zca>> extension. |
| 37 | +
|
| 38 | + The Xqccmp extension using same encodings as Zcmp extension for similar instructions, with 2 major differences: |
| 39 | +
|
| 40 | + * Order of load and store of registers is opposite to Zcmp order, but compliant with SW ABI |
| 41 | + * Xqccmp on top of Zcmp instructions defines qc.cm.pushfp instruction to manage frame pointer |
| 42 | +
|
| 43 | + The PUSH/POP assembly syntax uses several variables, the meaning of which are: |
| 44 | +
|
| 45 | + * _reg_list_ is a list containing 1 to 13 registers (ra and 0 to 12 s registers) |
| 46 | + ** valid values: {ra}, {ra, s0}, {ra, s0-s1}, {ra, s0-s2}, ..., {ra, s0-s8}, {ra, s0-s9}, {ra, s0-s11} |
| 47 | + ** note that {ra, s0-s10} is _not_ valid, giving 12 lists not 13 for better encoding |
| 48 | + * _stack_adj_ is the total size of the stack frame. |
| 49 | + ** valid values vary with register list length and the specific encoding, see the instruction pages for details. |
| 50 | +
|
| 51 | + [%header,cols="^1,^1,4,8"] |
| 52 | + |=== |
| 53 | + |RV32 |
| 54 | + |RV64 |
| 55 | + |Mnemonic |
| 56 | + |Instruction |
| 57 | +
|
| 58 | + |yes |
| 59 | + |yes |
| 60 | + |qc.cm.push _{reg_list}, -stack_adj_ |
| 61 | + |<<#insns-qc_cm_push>> |
| 62 | +
|
| 63 | + |yes |
| 64 | + |yes |
| 65 | + |qc.cm.pushfp _{reg_list}, -stack_adj_ |
| 66 | + |<<#insns-qc_cm_pushfp>> |
| 67 | +
|
| 68 | + |yes |
| 69 | + |yes |
| 70 | + |qc.cm.pop _{reg_list}, stack_adj_ |
| 71 | + |<<#insns-qc_cm_pop>> |
| 72 | +
|
| 73 | + |yes |
| 74 | + |yes |
| 75 | + |qc.cm.popret _{reg_list}, stack_adj_ |
| 76 | + |<<#insns-qc_cm_popret>> |
| 77 | +
|
| 78 | + |yes |
| 79 | + |yes |
| 80 | + |qc.cm.popretz _{reg_list}, stack_adj_ |
| 81 | + |<<#insns-qc_cm_popretz>> |
| 82 | +
|
| 83 | + |yes |
| 84 | + |yes |
| 85 | + |qc.cm.mva01s _rs1', rs2'_ |
| 86 | + |<<#insns-qc_cm_mva01s>> |
| 87 | +
|
| 88 | + |yes |
| 89 | + |yes |
| 90 | + |qc.cm.mvsa01 _r1s', r2s'_ |
| 91 | + |<<#insns-qc_cm_mvsa01>> |
| 92 | +
|
| 93 | + |=== |
| 94 | +
|
| 95 | +doc_license: |
| 96 | + name: Creative Commons Attribution 4.0 International License |
| 97 | + url: https://creativecommons.org/licenses/by/4.0/ |
| 98 | +company: |
| 99 | + name: Qualcomm Technologies, Inc. |
| 100 | + url: https://qualcomm.com |
0 commit comments