Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft for PseudoInstructions #301

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions arch/inst/I/pseudo/fence.tso.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: fence.tso
long_name: No synopsis available.
description: |
No description available.
definedBy: I
assembly: xs1, xd
origin_instruction: fence
encoding:
match: 100000110011-----000-----0001111
variables:
- name: rs1
location: 19-15
- name: rd
location: 11-7
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/ntl.all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: ntl.all
long_name: No synopsis available.
description: |
No description available.
definedBy: Zihintntl
assembly: ntl_all
origin_instruction: add
encoding:
match: '00000000010100000000000000110011'
variables: []
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/ntl.p1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: ntl.p1
long_name: No synopsis available.
description: |
No description available.
definedBy: Zihintntl
assembly: ntl_p1
origin_instruction: add
encoding:
match: '00000000001000000000000000110011'
variables: []
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/ntl.pall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: ntl.pall
long_name: No synopsis available.
description: |
No description available.
definedBy: Zihintntl
assembly: ntl_pall
origin_instruction: add
encoding:
match: '00000000001100000000000000110011'
variables: []
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/ntl.s1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: ntl.s1
long_name: No synopsis available.
description: |
No description available.
definedBy: Zihintntl
assembly: ntl_s1
origin_instruction: add
encoding:
match: '00000000010000000000000000110011'
variables: []
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/pause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: pause
long_name: No synopsis available.
description: |
No description available.
definedBy: I
assembly: pause
origin_instruction: fence
encoding:
match: '00000001000000000000000000001111'
variables: []
operation(): |

21 changes: 21 additions & 0 deletions arch/inst/I/pseudo/prefetch.i.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: prefetch.i
long_name: No synopsis available.
description: |
No description available.
definedBy: Zicbo
assembly: xs1, imm
origin_instruction: ori
encoding:
match: -------00000-----110000000010011
variables:
- name: imm
location: 31-25
left_shift: 5
- name: rs1
location: 19-15
operation(): |

21 changes: 21 additions & 0 deletions arch/inst/I/pseudo/prefetch.r.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: prefetch.r
long_name: No synopsis available.
description: |
No description available.
definedBy: Zicbo
assembly: xs1, imm
origin_instruction: ori
encoding:
match: -------00001-----110000000010011
variables:
- name: imm
location: 31-25
left_shift: 5
- name: rs1
location: 19-15
operation(): |

21 changes: 21 additions & 0 deletions arch/inst/I/pseudo/prefetch.w.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: prefetch.w
long_name: No synopsis available.
description: |
No description available.
definedBy: Zicbo
assembly: xs1, imm
origin_instruction: ori
encoding:
match: -------00011-----110000000010011
variables:
- name: imm
location: 31-25
left_shift: 5
- name: rs1
location: 19-15
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/sbreak.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: sbreak
long_name: No synopsis available.
description: |
No description available.
definedBy: I
assembly: sbreak
origin_instruction: ebreak
encoding:
match: '00000000000100000000000001110011'
variables: []
operation(): |

16 changes: 16 additions & 0 deletions arch/inst/I/pseudo/scall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

$schema: inst_schema.json#
kind: pseudoinstruction
name: scall
long_name: No synopsis available.
description: |
No description available.
definedBy: I
assembly: scall
origin_instruction: ecall
encoding:
match: '00000000000000000000000001110011'
variables: []
operation(): |

Loading