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

Polishing to the specification #271

Merged
merged 28 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
57754cc
Multiple amendments in the specification
eopXD Sep 14, 2023
aa73b29
Add syntax highlight for type tables and add tuple type tables
eopXD Sep 14, 2023
6a5fbdf
Add note to cover assumption of vstart
eopXD Sep 14, 2023
b3d72f2
Move notes for vd to the programming notes section
eopXD Sep 14, 2023
2fd3103
Add descriptions for the pseudo instructions
eopXD Sep 14, 2023
3d2010f
Use the term 'the specification' instead of 'v-spec'
eopXD Sep 15, 2023
0aabdaf
Fix grammatical errors and add details regarding control to vl and it…
eopXD Sep 15, 2023
4f179ec
Fixing tables and source highlighting.
wmat Sep 8, 2023
52d66cf
Set font-size to 9.5 for tables by bumping version of doc-resources.
wmat Sep 8, 2023
c5954a5
Another round of edit to the specification
eopXD Sep 18, 2023
ecf3461
Add detail for pseudo intrinsics vreinterpret
eopXD Sep 19, 2023
6f84e0a
Add missed case in naming exception in the explicit naming scheme
eopXD Sep 20, 2023
326d29e
Fix description regarding the passthrough argument in the intrinsics
eopXD Sep 20, 2023
bfdc9fb
Fix appendix (intrinsic prototype lists) for ASCIIDoc
eopXD Sep 19, 2023
51df166
[Auto-gen] Update documents under ../auto-generated. (make git-commit…
eopXD Sep 19, 2023
1b5fc10
Add script to format auto-generated adoc files
eopXD Sep 19, 2023
2129283
[Makefile] Add clang format action when generating the documents
eopXD Sep 19, 2023
07bf933
Add clang-format in prerequisite for Github Action
eopXD Sep 19, 2023
0a0fd0c
[Auto-gen] Update documents under ../auto-generated. (make git-commit…
eopXD Sep 19, 2023
e8a3368
[Auto-gen] Update tests under ../auto-generated. (make git-commit-aut…
eopXD Sep 19, 2023
c2d572a
[Auto-gen] Update tests under ../auto-generated. (make git-commmit-au…
eopXD Sep 19, 2023
972d5d4
Change parameters names to mnemonics of the specification
eopXD Sep 20, 2023
bdd5690
Change mask and passthrough parameters to mnemonics of the specification
eopXD Sep 20, 2023
01302b0
[Auto-gen] Update documents under ../auto-generated. (make git-commit…
eopXD Sep 20, 2023
7eab7b6
[Auto-gen] Update tests under ../auto-generated. (make git-commit-aut…
eopXD Sep 20, 2023
1274f8a
[Makefile] Clean test report before running test
eopXD Sep 20, 2023
72bce00
Address comments from Roger
eopXD Oct 13, 2023
b84324d
Bump docs-resource version
eopXD Oct 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Prerequisites
run: |
sudo apt-get install clang-format
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
399 changes: 221 additions & 178 deletions auto-generated/api-testing/vaadd.c

Large diffs are not rendered by default.

402 changes: 224 additions & 178 deletions auto-generated/api-testing/vaaddu.c

Large diffs are not rendered by default.

443 changes: 265 additions & 178 deletions auto-generated/api-testing/vadc.c

Large diffs are not rendered by default.

798 changes: 444 additions & 354 deletions auto-generated/api-testing/vadd.c

Large diffs are not rendered by default.

798 changes: 444 additions & 354 deletions auto-generated/api-testing/vand.c

Large diffs are not rendered by default.

399 changes: 221 additions & 178 deletions auto-generated/api-testing/vasub.c

Large diffs are not rendered by default.

402 changes: 224 additions & 178 deletions auto-generated/api-testing/vasubu.c

Large diffs are not rendered by default.

260 changes: 140 additions & 120 deletions auto-generated/api-testing/vcompress.c

Large diffs are not rendered by default.

59 changes: 29 additions & 30 deletions auto-generated/api-testing/vcpop.c
Original file line number Diff line number Diff line change
@@ -1,62 +1,61 @@
#include <stdint.h>
#include <riscv_vector.h>
#include <stdint.h>

typedef _Float16 float16_t;
typedef float float32_t;
typedef double float64_t;
unsigned long test_vcpop_m_b1(vbool1_t op1, size_t vl) {
return __riscv_vcpop_m_b1(op1, vl);
unsigned long test_vcpop_m_b1(vbool1_t vs2, size_t vl) {
return __riscv_vcpop_m_b1(vs2, vl);
}

unsigned long test_vcpop_m_b2(vbool2_t op1, size_t vl) {
return __riscv_vcpop_m_b2(op1, vl);
unsigned long test_vcpop_m_b2(vbool2_t vs2, size_t vl) {
return __riscv_vcpop_m_b2(vs2, vl);
}

unsigned long test_vcpop_m_b4(vbool4_t op1, size_t vl) {
return __riscv_vcpop_m_b4(op1, vl);
unsigned long test_vcpop_m_b4(vbool4_t vs2, size_t vl) {
return __riscv_vcpop_m_b4(vs2, vl);
}

unsigned long test_vcpop_m_b8(vbool8_t op1, size_t vl) {
return __riscv_vcpop_m_b8(op1, vl);
unsigned long test_vcpop_m_b8(vbool8_t vs2, size_t vl) {
return __riscv_vcpop_m_b8(vs2, vl);
}

unsigned long test_vcpop_m_b16(vbool16_t op1, size_t vl) {
return __riscv_vcpop_m_b16(op1, vl);
unsigned long test_vcpop_m_b16(vbool16_t vs2, size_t vl) {
return __riscv_vcpop_m_b16(vs2, vl);
}

unsigned long test_vcpop_m_b32(vbool32_t op1, size_t vl) {
return __riscv_vcpop_m_b32(op1, vl);
unsigned long test_vcpop_m_b32(vbool32_t vs2, size_t vl) {
return __riscv_vcpop_m_b32(vs2, vl);
}

unsigned long test_vcpop_m_b64(vbool64_t op1, size_t vl) {
return __riscv_vcpop_m_b64(op1, vl);
unsigned long test_vcpop_m_b64(vbool64_t vs2, size_t vl) {
return __riscv_vcpop_m_b64(vs2, vl);
}

unsigned long test_vcpop_m_b1_m(vbool1_t mask, vbool1_t op1, size_t vl) {
return __riscv_vcpop_m_b1_m(mask, op1, vl);
unsigned long test_vcpop_m_b1_m(vbool1_t vm, vbool1_t vs2, size_t vl) {
return __riscv_vcpop_m_b1_m(vm, vs2, vl);
}

unsigned long test_vcpop_m_b2_m(vbool2_t mask, vbool2_t op1, size_t vl) {
return __riscv_vcpop_m_b2_m(mask, op1, vl);
unsigned long test_vcpop_m_b2_m(vbool2_t vm, vbool2_t vs2, size_t vl) {
return __riscv_vcpop_m_b2_m(vm, vs2, vl);
}

unsigned long test_vcpop_m_b4_m(vbool4_t mask, vbool4_t op1, size_t vl) {
return __riscv_vcpop_m_b4_m(mask, op1, vl);
unsigned long test_vcpop_m_b4_m(vbool4_t vm, vbool4_t vs2, size_t vl) {
return __riscv_vcpop_m_b4_m(vm, vs2, vl);
}

unsigned long test_vcpop_m_b8_m(vbool8_t mask, vbool8_t op1, size_t vl) {
return __riscv_vcpop_m_b8_m(mask, op1, vl);
unsigned long test_vcpop_m_b8_m(vbool8_t vm, vbool8_t vs2, size_t vl) {
return __riscv_vcpop_m_b8_m(vm, vs2, vl);
}

unsigned long test_vcpop_m_b16_m(vbool16_t mask, vbool16_t op1, size_t vl) {
return __riscv_vcpop_m_b16_m(mask, op1, vl);
unsigned long test_vcpop_m_b16_m(vbool16_t vm, vbool16_t vs2, size_t vl) {
return __riscv_vcpop_m_b16_m(vm, vs2, vl);
}

unsigned long test_vcpop_m_b32_m(vbool32_t mask, vbool32_t op1, size_t vl) {
return __riscv_vcpop_m_b32_m(mask, op1, vl);
unsigned long test_vcpop_m_b32_m(vbool32_t vm, vbool32_t vs2, size_t vl) {
return __riscv_vcpop_m_b32_m(vm, vs2, vl);
}

unsigned long test_vcpop_m_b64_m(vbool64_t mask, vbool64_t op1, size_t vl) {
return __riscv_vcpop_m_b64_m(mask, op1, vl);
unsigned long test_vcpop_m_b64_m(vbool64_t vm, vbool64_t vs2, size_t vl) {
return __riscv_vcpop_m_b64_m(vm, vs2, vl);
}

662 changes: 484 additions & 178 deletions auto-generated/api-testing/vcreate.c

Large diffs are not rendered by default.

Loading
Loading